From 8d31e93fcd00016f1a0e70f3a7cc8f0888ed2523 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Wed, 8 Jul 2020 15:11:16 +0200 Subject: [PATCH] reponse --- rowers/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rowers/tasks.py b/rowers/tasks.py index 1a63dbd8..86fbdcc1 100644 --- a/rowers/tasks.py +++ b/rowers/tasks.py @@ -698,6 +698,8 @@ def get_garmin_file(client_id,client_secret,garmintoken,garminrefreshtoken,useri with open(filename, 'wb') as out_file: shutil.copyfileobj(response.raw, out_file) + del response + uploadoptions = { 'secret':UPLOAD_SERVICE_SECRET, 'user':userid, @@ -707,8 +709,6 @@ def get_garmin_file(client_id,client_secret,garmintoken,garminrefreshtoken,useri response = requests.post(UPLOAD_SERVICE_URL,data=uploadoptions) - del response - return 1 @app.task(bind=True)