ajax call for history chart
This commit is contained in:
@@ -4747,8 +4747,11 @@ def history_view(request,userid=0):
|
||||
|
||||
|
||||
# interactive hr pie chart
|
||||
totalscript = ''
|
||||
totaldiv = get_call()
|
||||
if typeselect == 'All':
|
||||
totalscript,totaldiv = interactive_hr_piechart(df,r,'All Workouts')
|
||||
pass
|
||||
#totalscript,totaldiv = interactive_hr_piechart(df,r,'All Workouts')
|
||||
else:
|
||||
a_workouts = g_workouts.filter(workouttype=typeselect)
|
||||
ddf = getsmallrowdata_db(columns,ids=[w.id for w in a_workouts])
|
||||
@@ -4758,7 +4761,7 @@ def history_view(request,userid=0):
|
||||
pass
|
||||
ddf = dataprep.clean_df_stats(ddf,workstrokesonly=True,
|
||||
ignoreadvanced=True)
|
||||
totalscript, totaldiv = interactive_hr_piechart(ddf,r,mytypes.workouttypes_ordered[typeselect])
|
||||
#totalscript, totaldiv = interactive_hr_piechart(ddf,r,mytypes.workouttypes_ordered[typeselect])
|
||||
|
||||
# interactive power pie chart
|
||||
|
||||
|
||||
Reference in New Issue
Block a user