fix bug
This commit is contained in:
@@ -2064,6 +2064,7 @@ def leaflet_chart(lat,lon,name=""):
|
|||||||
def leaflet_chart_compare(course,workoutids,labeldict={},startenddict={}):
|
def leaflet_chart_compare(course,workoutids,labeldict={},startenddict={}):
|
||||||
data = []
|
data = []
|
||||||
for id in workoutids:
|
for id in workoutids:
|
||||||
|
try:
|
||||||
w = Workout.objects.get(id=id)
|
w = Workout.objects.get(id=id)
|
||||||
rowdata = rdata(w.csvfilename)
|
rowdata = rdata(w.csvfilename)
|
||||||
time = rowdata.df['TimeStamp (sec)']
|
time = rowdata.df['TimeStamp (sec)']
|
||||||
@@ -2074,6 +2075,8 @@ def leaflet_chart_compare(course,workoutids,labeldict={},startenddict={}):
|
|||||||
'time':time-time[0],
|
'time':time-time[0],
|
||||||
})
|
})
|
||||||
data.append(df)
|
data.append(df)
|
||||||
|
except Workout.DoesNotExist:
|
||||||
|
pass
|
||||||
|
|
||||||
df = pd.concat(data,axis=0)
|
df = pd.concat(data,axis=0)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user