preventing double uploads
This commit is contained in:
@@ -1067,7 +1067,8 @@ def strava_webhook_view(request):
|
|||||||
f.write(' ')
|
f.write(' ')
|
||||||
f.write('Rower not found')
|
f.write('Rower not found')
|
||||||
return HttpResponse(status=200)
|
return HttpResponse(status=200)
|
||||||
|
ws = Workout.objects.filter(uploadedtostrava=stravaid)
|
||||||
|
if ws.count()==0:
|
||||||
job = stravastuff.async_get_workout(r.user,stravaid)
|
job = stravastuff.async_get_workout(r.user,stravaid)
|
||||||
elif aspect_type == 'update':
|
elif aspect_type == 'update':
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user