Private
Public Access
1
0

First attempt at processing strava webhook create

This commit is contained in:
Sander Roosendaal
2020-07-12 12:54:50 +02:00
parent d0a2d04aef
commit 3564a89e02
6 changed files with 284 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ from rowers.utils import myqueue
import rowers.mytypes as mytypes
import gzip
from rowers.tasks import handle_strava_sync
from rowers.tasks import handle_strava_sync,fetch_strava_workout
from rowsandall_app.settings import (
C2_CLIENT_ID, C2_REDIRECT_URI, C2_CLIENT_SECRET,
@@ -325,7 +325,16 @@ def create_async_workout(alldata,user,stravaid,debug=False):
from rowers.utils import get_strava_stream
def async_get_workout(user,stravaid,workout):
job = myqueue(queue,
fetch_strava_workout,
user.rower.stravatoken,
oauth_data,
workout.id,
stravaid,
workout.csvfilename,
)
return job
# Get a Strava workout summary data and stroke data by ID
def get_workout(user,stravaid):