Private
Public Access
1
0

excluding strava from API calls

This commit is contained in:
2024-12-15 18:08:29 +01:00
parent ae3b55e9c0
commit 2079961b76

View File

@@ -80,7 +80,8 @@ class WorkoutViewSet(viewsets.ModelViewSet):
def get_queryset(self): # pragma: no cover
try:
r = Rower.objects.get(user=self.request.user)
return Workout.objects.filter(user=r).order_by("-date", "-starttime")
#return Workout.objects.filter(user=r).order_by("-date", "-starttime")
return Workout.objects.filter(user=r).exclude(workoutsource='strava').order_by("-date", "-starttime")
except TypeError:
return []