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