Private
Public Access
1
0

bug fix for data without lat/long

This commit is contained in:
Sander Roosendaal
2017-01-06 13:04:56 +01:00
parent 45e6e2ec80
commit 224c4f5cf1

View File

@@ -3141,13 +3141,14 @@ def workout_edit_view(request,id=0,message="",successmessage=""):
if rowdata != 0:
try:
latitude = rowdata.df[' latitude']
if not latitude.std():
hascoordinates = 0
except KeyError,AttributeError:
hascoordinates = 0
else:
hascoordinates = 0
if not latitude.std():
hascoordinates = 0
if hascoordinates:
res = googlemap_chart(rowdata.df[' latitude'],