bug fix for data without lat/long
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user