Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-05-06 22:17:31 +02:00
parent 3f6acc3a85
commit 86eea03db2

View File

@@ -4706,6 +4706,7 @@ def history_view(request,userid=0):
typechoices = [("All","All")] typechoices = [("All","All")]
for wtype in wtypes: for wtype in wtypes:
if wtype in mytypes.checktypes:
typechoices.append((wtype,mytypes.workouttypes_ordered[wtype])) typechoices.append((wtype,mytypes.workouttypes_ordered[wtype]))
form.fields['workouttype'].choices = typechoices form.fields['workouttype'].choices = typechoices
@@ -4837,6 +4838,7 @@ def history_view_data(request,userid=0):
typechoices = [("All","All")] typechoices = [("All","All")]
for wtype in wtypes: for wtype in wtypes:
if wtype in mytypes.checktypes:
typechoices.append((wtype,mytypes.workouttypes_ordered[wtype])) typechoices.append((wtype,mytypes.workouttypes_ordered[wtype]))
listofdicts = [] listofdicts = []