hoping strava webhooks will work
This commit is contained in:
@@ -1041,17 +1041,9 @@ def strava_webhook_view(request):
|
||||
except Rower.DoesNotExist:
|
||||
return HttpResponse(status=200)
|
||||
|
||||
w = Workout(
|
||||
user = r,
|
||||
csvfilename = 'media/{code}_{stravaid}'.format(code=uuid4().hex[:16],stravaid=stravaid),
|
||||
startdatetime = timezone.now(),
|
||||
uploadedtostrava=stravaid,
|
||||
)
|
||||
w.save()
|
||||
# too slow ...
|
||||
job = stravastuff.async_get_workout(r.user,stravaid,w)
|
||||
job = stravastuff.async_get_workout(r.user,stravaid)
|
||||
|
||||
print(w.id)
|
||||
|
||||
return HttpResponse(status=200)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user