Private
Public Access
1
0

rp3, untested

This commit is contained in:
Sander Roosendaal
2023-02-14 20:57:42 +01:00
parent 4a70d7a3d0
commit 3c0fbc431d
9 changed files with 308 additions and 335 deletions

View File

@@ -3158,6 +3158,9 @@ def handle_update_wps(rid, types, ids, mode, debug=False, **kwargs):
@app.task
def handle_rp3_async_workout(userid, rp3token, rp3id, startdatetime, max_attempts, debug=False, **kwargs):
timezone = kwargs.get('timezone', 'UTC')
headers = {'Authorization': 'Bearer ' + rp3token}
get_download_link = """{
@@ -3239,8 +3242,11 @@ def handle_rp3_async_workout(userid, rp3token, rp3id, startdatetime, max_attempt
'boattype': '1x',
'rp3id': int(rp3id),
'startdatetime': startdatetime,
'timezone': timezone,
}
print(uploadoptions)
session = requests.session()
newHeaders = {'Content-type': 'application/json', 'Accept': 'text/plain'}
session.headers.update(newHeaders)