Private
Public Access
1
0

some precautions against empty workouts

This commit is contained in:
Sander Roosendaal
2017-05-09 09:52:37 +02:00
parent faa8fa5316
commit cba92b8619
2 changed files with 12 additions and 1 deletions

View File

@@ -444,6 +444,8 @@ def interactive_histoall(theworkouts):
return [script,div]
def googlemap_chart(lat,lon,name=""):
if lat.empty or lon.empty:
return [0,"invalid coordinate data"]
# plot tools
TOOLS = 'save,pan,box_zoom,wheel_zoom,reset,tap,resize'