Private
Public Access
1
0

fix history #574

This commit is contained in:
Sander Roosendaal
2020-09-09 23:11:11 +02:00
parent 83088e1139
commit 57e5748335

View File

@@ -4841,6 +4841,7 @@ def history_view_data(request,userid=0):
typeselect = 'All'
if request.GET.get('workouttype'):
typeselect = request.GET.get('workouttype')
@@ -4848,7 +4849,8 @@ def history_view_data(request,userid=0):
typeselect = 'All'
yaxis = request.GET.get('yaxis','duration')
if yaxis not in ['duration','rscore','trimp']:
if yaxis.lower() not in ['duration','rscore','trimp']:
yaxis = 'duration'
g_workouts = Workout.objects.filter(