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:
|
with open(filename, 'wb') as out_file:
|
||||||
shutil.copyfileobj(response.raw, out_file)
|
shutil.copyfileobj(response.raw, out_file)
|
||||||
|
|
||||||
|
del response
|
||||||
|
|
||||||
uploadoptions = {
|
uploadoptions = {
|
||||||
'secret':UPLOAD_SERVICE_SECRET,
|
'secret':UPLOAD_SERVICE_SECRET,
|
||||||
'user':userid,
|
'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)
|
response = requests.post(UPLOAD_SERVICE_URL,data=uploadoptions)
|
||||||
|
|
||||||
del response
|
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
@app.task(bind=True)
|
@app.task(bind=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user