Private
Public Access
1
0

initial rojabo integration

This commit is contained in:
Sander Roosendaal
2022-04-28 11:54:40 +02:00
parent 9f4f9cf8d0
commit ce30e66d27
5 changed files with 69 additions and 2 deletions

View File

@@ -3377,6 +3377,16 @@ def handle_c2_async_workout(alldata, userid, c2token, c2id, delaysec, defaulttim
return workoutid
@app.task
def fetch_rojabo_session(id,alldata,userid,rowerid,debug=False, **kwargs):
try:
item = alldata[id]
except KeyError:
return 0
return 1
@app.task
def fetch_strava_workout(stravatoken, oauth_data, stravaid, csvfilename, userid, debug=False, **kwargs):
@@ -3390,7 +3400,7 @@ def fetch_strava_workout(stravatoken, oauth_data, stravaid, csvfilename, userid,
if response.status_code != 200: # pragma: no cover
tstamp = time.localtime()
timestamp = time.strftime('%b-%d-%Y_%H%M', tstamp)
with open('strava_webhooks.log', 'a') as f:
with open('stravalog.log', 'a') as f:
f.write('\n')
f.write(timestamp)
f.write(' ')