some precautions against empty workouts
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user