sort of works
This commit is contained in:
@@ -148,10 +148,6 @@ def get_strava_workout_list(user):
|
||||
def add_stroke_data(user,stravaid,workoutid,startdatetime,csvfilename):
|
||||
r = Rower.objects.get(user=user)
|
||||
|
||||
print 'Queueing job for workout {workoutid} (strava {stravaid})'.format(
|
||||
workoutid=workoutid,
|
||||
stravaid=stravaid)
|
||||
|
||||
starttimeunix = arrow.get(startdatetime).timestamp
|
||||
|
||||
job = myqueue(queue,
|
||||
@@ -184,7 +180,7 @@ def get_strava_workouts(rower):
|
||||
])
|
||||
newids = [stravaid for stravaid in stravaids if not stravaid in knownstravaids]
|
||||
|
||||
for stravaid in newids[:1]:
|
||||
for stravaid in newids:
|
||||
workoutid = create_async_workout(alldata,rower.user,stravaid)
|
||||
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user