Merge branch 'release/v12.28'
This commit is contained in:
@@ -4706,7 +4706,8 @@ def history_view(request,userid=0):
|
|||||||
|
|
||||||
typechoices = [("All","All")]
|
typechoices = [("All","All")]
|
||||||
for wtype in wtypes:
|
for wtype in wtypes:
|
||||||
typechoices.append((wtype,mytypes.workouttypes_ordered[wtype]))
|
if wtype in mytypes.checktypes:
|
||||||
|
typechoices.append((wtype,mytypes.workouttypes_ordered[wtype]))
|
||||||
|
|
||||||
form.fields['workouttype'].choices = typechoices
|
form.fields['workouttype'].choices = typechoices
|
||||||
|
|
||||||
@@ -4730,7 +4731,7 @@ def history_view(request,userid=0):
|
|||||||
# interactive hr pie chart
|
# interactive hr pie chart
|
||||||
totalscript = ''
|
totalscript = ''
|
||||||
totaldiv = get_call()
|
totaldiv = get_call()
|
||||||
|
|
||||||
totalsdict = {}
|
totalsdict = {}
|
||||||
totalsdict['duration'] = "{totalhours}:{totalminutes}".format(
|
totalsdict['duration'] = "{totalhours}:{totalminutes}".format(
|
||||||
totalhours=totalhours,
|
totalhours=totalhours,
|
||||||
@@ -4837,7 +4838,8 @@ def history_view_data(request,userid=0):
|
|||||||
|
|
||||||
typechoices = [("All","All")]
|
typechoices = [("All","All")]
|
||||||
for wtype in wtypes:
|
for wtype in wtypes:
|
||||||
typechoices.append((wtype,mytypes.workouttypes_ordered[wtype]))
|
if wtype in mytypes.checktypes:
|
||||||
|
typechoices.append((wtype,mytypes.workouttypes_ordered[wtype]))
|
||||||
|
|
||||||
listofdicts = []
|
listofdicts = []
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user