correcting logic error (all workouts)
This commit is contained in:
@@ -1598,7 +1598,7 @@ def fitnessfit_chart(workouts,user,workoutmode='water',startdate=None,
|
||||
# create Fitness and Fatigue number
|
||||
fatigue = 0
|
||||
fitness = 0
|
||||
previousworkouts = workouts.filter(date__lte=w.date)
|
||||
previousworkouts = Workout.objects.filter(user=user.rower,date__lte=w.date)
|
||||
for ww in previousworkouts:
|
||||
delta = (w.date-ww.date).days
|
||||
weight = getattr(ww,metricchoice)
|
||||
|
||||
Reference in New Issue
Block a user