Private
Public Access
1
0

hoping strava webhooks will work

This commit is contained in:
Sander Roosendaal
2020-07-12 13:20:13 +02:00
parent 3564a89e02
commit b85441f7eb
4 changed files with 26 additions and 22 deletions

View File

@@ -325,14 +325,15 @@ def create_async_workout(alldata,user,stravaid,debug=False):
from rowers.utils import get_strava_stream
def async_get_workout(user,stravaid,workout):
def async_get_workout(user,stravaid):
csvfilename = 'media/{code}_{stravaid}.csv'.format(code=uuid4().hex[:16],stravaid=stravaid)
job = myqueue(queue,
fetch_strava_workout,
user.rower.stravatoken,
oauth_data,
workout.id,
stravaid,
workout.csvfilename,
csvfilename,
user.id,
)
return job