Private
Public Access
1
0

strava chart

This commit is contained in:
Sander Roosendaal
2020-11-06 22:13:43 +01:00
parent 219442f891
commit bc21b787a3

View File

@@ -4448,12 +4448,12 @@ def interactive_flexchart_stacked(id,r,xparam='time',
row = Workout.objects.get(id=id) row = Workout.objects.get(id=id)
if rowdata.empty: if rowdata.empty:
return "","No valid data",'','' return "","No valid data",'','',comment
try: try:
tseconds = rowdata.loc[:,'time'] tseconds = rowdata.loc[:,'time']
except KeyError: except KeyError:
return '','No time data - cannot make flex plot','','' return '','No time data - cannot make flex plot','','',comment
try: try:
rowdata['x1'] = rowdata.loc[:,xparam] rowdata['x1'] = rowdata.loc[:,xparam]