Private
Public Access
1
0

len to count

This commit is contained in:
Sander Roosendaal
2020-07-14 20:20:57 +02:00
parent 2f78d26d37
commit 75afa1d2a7

View File

@@ -1083,7 +1083,7 @@ def strava_webhook_view(request):
return HttpResponse(status=200)
try:
ws = Workout.objects.filter(uploadedtostrava=stravaid)
if len(ws) == 0:
if ws.count() == 0:
return HttpResponse(status=200)
except Workout.DoesNotExist:
timestamp = time.strftime('%b-%d-%Y_%H%M', t)