reponse
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user