strava chart
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user