Private
Public Access
1
0

adding rp3 sync to tests

This commit is contained in:
Sander Roosendaal
2021-04-19 10:22:02 +02:00
parent 0c13f798de
commit ed5af7d8b7
6 changed files with 160 additions and 1 deletions

View File

@@ -2857,9 +2857,15 @@ def handle_rp3_async_workout(userid,rp3token,rp3id,startdatetime,max_attempts,de
res = requests.get(download_url,headers=headers)
if not startdatetime:
startdatetime = str(timezone.now())
try:
startdatetime = str(startdatetime)
except:
pass
if res.status_code != 200:
return 0