fix history #574
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user