Private
Public Access
1
0

fitness-fit has now right algo

This commit is contained in:
Sander Roosendaal
2021-01-01 16:24:42 +01:00
parent 069ac5a182
commit 0e9944044d
2 changed files with 57 additions and 17 deletions

View File

@@ -1678,13 +1678,9 @@ 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.rowtypes,
duplicate=False)
if mode == 'rower':
workouts = Workout.objects.filter(user=therower,date__gte=startdate,
date__lte=enddate,workouttype__in=mytypes.otetypes,
duplicate=False)
script,thediv = fitnessfit_chart(