interactive_chart reads only 3 columns now
This commit is contained in:
@@ -497,9 +497,17 @@ def interactive_chart(id=0,promember=0):
|
||||
TOOLS = 'pan,box_zoom,wheel_zoom,reset,tap,hover,crosshair'
|
||||
|
||||
|
||||
datadf,row = dataprep.getrowdata_db(id=id)
|
||||
columns = ['time','pace','hr']
|
||||
datadf = dataprep.getsmallrowdata_db(columns,ids=[id])
|
||||
row = Workout.objects.get(id=id)
|
||||
if datadf.empty:
|
||||
return "","CSV Data File Not Found"
|
||||
else:
|
||||
datadf.sort_values(by='time',ascending=True,inplace=True)
|
||||
|
||||
#datadf,row = dataprep.getrowdata_db(id=id)
|
||||
#if datadf.empty:
|
||||
#return "","CSV Data File Not Found"
|
||||
|
||||
source = ColumnDataSource(
|
||||
datadf
|
||||
|
||||
Reference in New Issue
Block a user