diff --git a/rowers/views.py b/rowers/views.py index 09601c50..1d1a64c2 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -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'],