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={}):
|
||||
data = []
|
||||
for id in workoutids:
|
||||
try:
|
||||
w = Workout.objects.get(id=id)
|
||||
rowdata = rdata(w.csvfilename)
|
||||
time = rowdata.df['TimeStamp (sec)']
|
||||
@@ -2074,6 +2075,8 @@ def leaflet_chart_compare(course,workoutids,labeldict={},startenddict={}):
|
||||
'time':time-time[0],
|
||||
})
|
||||
data.append(df)
|
||||
except Workout.DoesNotExist:
|
||||
pass
|
||||
|
||||
df = pd.concat(data,axis=0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user