Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-06-12 18:17:28 +02:00
parent c6e58771e6
commit f9b72f6310

View File

@@ -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:
if id != 0 and id is not None:
try: try:
w = Workout.objects.get(id=id) w = Workout.objects.get(id=id)
rowdata = rdata(w.csvfilename) rowdata = rdata(w.csvfilename)