bug fix preventing people from chosing own metrics in history
This commit is contained in:
@@ -4848,6 +4848,8 @@ def history_view_data(request,userid=0):
|
|||||||
typeselect = 'All'
|
typeselect = 'All'
|
||||||
|
|
||||||
yaxis = request.GET.get('yaxis','duration')
|
yaxis = request.GET.get('yaxis','duration')
|
||||||
|
if yaxis not in ['duration','rscore','trimp']:
|
||||||
|
yaxis = 'duration'
|
||||||
|
|
||||||
g_workouts = Workout.objects.filter(
|
g_workouts = Workout.objects.filter(
|
||||||
user=r,
|
user=r,
|
||||||
|
|||||||
Reference in New Issue
Block a user