Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-11-24 20:31:30 +01:00
parent 1253e00186
commit 3989c1a75f
2 changed files with 17 additions and 11 deletions

View File

@@ -1581,10 +1581,12 @@ def fitness_from_cp_view(request,userid=0,mode='rower',
workouts = Workout.objects.filter(user=therower,date__gte=startdate,
date__lte=enddate,
workouttype__in=mytypes.otwtypes)
workouttype__in=mytypes.otwtypes,
duplicate=False)
if mode == 'rower':
workouts = Workout.objects.filter(user=therower,date__gte=startdate,
date__lte=enddate,workouttype__in=mytypes.otetypes)
date__lte=enddate,workouttype__in=mytypes.otetypes,
duplicate=False)