From e816eae2e51ed36a39e03749d52c93f152733129 Mon Sep 17 00:00:00 2001 From: OusmBlueNinja Date: Sat, 26 Aug 2023 23:12:40 -0500 Subject: [PATCH] fix smth i broke --- packages/update.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/update.py b/packages/update.py index deae603..eb8c83a 100644 --- a/packages/update.py +++ b/packages/update.py @@ -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 = ""