show commutes small change
This commit is contained in:
@@ -2264,6 +2264,10 @@ def workouts_view(request, message='', successmessage='',
|
||||
g_enddate = timezone.now()
|
||||
g_startdate = (timezone.now()-timedelta(days=15))
|
||||
|
||||
if not r.show_commutes:
|
||||
workouts = workouts.exclude(is_commute=True)
|
||||
g_workouts = g_workouts.exclude(is_commute=True)
|
||||
|
||||
workoutsnohr = workouts.exclude(averagehr__isnull=False)
|
||||
for w in workoutsnohr: # pragma: no cover
|
||||
_ = dataprep.workout_trimp(w)
|
||||
|
||||
Reference in New Issue
Block a user