hoping strava webhooks will work
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user