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

@@ -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)