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:
|
if rowdata != 0:
|
||||||
try:
|
try:
|
||||||
latitude = rowdata.df[' latitude']
|
latitude = rowdata.df[' latitude']
|
||||||
|
if not latitude.std():
|
||||||
|
hascoordinates = 0
|
||||||
except KeyError,AttributeError:
|
except KeyError,AttributeError:
|
||||||
hascoordinates = 0
|
hascoordinates = 0
|
||||||
|
|
||||||
else:
|
else:
|
||||||
hascoordinates = 0
|
hascoordinates = 0
|
||||||
|
|
||||||
if not latitude.std():
|
|
||||||
hascoordinates = 0
|
|
||||||
|
|
||||||
if hascoordinates:
|
if hascoordinates:
|
||||||
res = googlemap_chart(rowdata.df[' latitude'],
|
res = googlemap_chart(rowdata.df[' latitude'],
|
||||||
|
|||||||
Reference in New Issue
Block a user