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 = ""