Bugfix
This commit is contained in:
parent
bd227f9c4b
commit
391c4c6c52
@ -133,7 +133,7 @@ def run(files, root_dir, git_dir):
|
|||||||
found_commit = find_newest_commit(git_dir, f, sha1hash, md5hash, commits)
|
found_commit = find_newest_commit(git_dir, f, sha1hash, md5hash, commits)
|
||||||
if found_commit:
|
if found_commit:
|
||||||
print(f"[+] Commit {found_commit} matches")
|
print(f"[+] Commit {found_commit} matches")
|
||||||
if latest_commit is None or commits[found_commit] < latest_ts:
|
if latest_commit is None or commits[found_commit] > latest_ts:
|
||||||
latest_commit = found_commit
|
latest_commit = found_commit
|
||||||
latest_ts = commits[found_commit]
|
latest_ts = commits[found_commit]
|
||||||
else:
|
else:
|
||||||
|
@ -8,6 +8,7 @@ def generateTemplate(baseUrl):
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import json
|
import json
|
||||||
|
import time
|
||||||
import base64
|
import base64
|
||||||
import requests
|
import requests
|
||||||
import subprocess
|
import subprocess
|
||||||
@ -29,7 +30,13 @@ def request(method, uri, **kwargs):
|
|||||||
client = kwargs["session"]
|
client = kwargs["session"]
|
||||||
del kwargs["session"]
|
del kwargs["session"]
|
||||||
|
|
||||||
return client.request(method, BASE_URL + uri, verify=False, allow_redirects=False, **kwargs)
|
if "allow_redirects" not in kwargs:
|
||||||
|
kwargs["allow_redirects"] = False
|
||||||
|
|
||||||
|
if "verify" not in kwargs:
|
||||||
|
kwargs["verify"] = False
|
||||||
|
|
||||||
|
return client.request(method, BASE_URL + uri, **kwargs)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user