initial rojabo integration
This commit is contained in:
@@ -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(' ')
|
||||
|
||||
Reference in New Issue
Block a user