Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-07-08 15:11:16 +02:00
parent c1803ed4a9
commit 8d31e93fcd

View File

@@ -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)