fix smth i broke

This commit is contained in:
OusmBlueNinja 2023-08-26 23:12:40 -05:00
parent 363bfd42d8
commit e816eae2e5

View File

@ -13,9 +13,9 @@ fileList = [
def download_and_save(url):
r = requests.get(url)
print(r)
if 'Requests:' in r.text:
with open("./logs", "w") as f:
f.write(r.text)
print(r.text)
print(r.headers['Content-Type'])
fileInstallingCreator = os.path.join(os.path.dirname(os.path.realpath(__file__)), os.path.basename(url))
@ -29,7 +29,7 @@ def upd(command):
threads = []
for url in fileList:
thread = threading.Thread(target=download_and_save, args=(url))
thread = threading.Thread(target=download_and_save, args=(url,))
threads.append(thread)
thread.start()
text = ""