Private
Public Access
1
0

initial attempt - not working yet

This commit is contained in:
Sander Roosendaal
2020-06-01 21:45:46 +02:00
parent 0a88a059bc
commit ecb90c9ac4
2 changed files with 110 additions and 2 deletions

View File

@@ -2049,7 +2049,20 @@ def leaflet_chart(lat,lon,name=""):
return script,div
def leaflet_chart_compare(latlondf,name=""):
def leaflet_chart_compare(workoutids,labeldict={},startenddict={}):
data = []
for id in workoutids:
w = Workout.objects.get(id=id)
rowdata = rdata(w.csvfilename)
df = pd.DataFrame({
'id':id,
'latitude':rowdata.df[' latitude'],
'longitude':rowdata.df[' longitude']
})
data.append(f)
df = pd.concat(data,axis=0)
if lat.empty or lon.empty:
return [0,"invalid coordinate data"]