Private
Public Access
1
0

getting coordinates right on fusion

This commit is contained in:
Sander Roosendaal
2017-05-30 09:23:27 +02:00
parent 061b9b74f9
commit 6eaa594875
2 changed files with 25 additions and 1 deletions

View File

@@ -3854,7 +3854,7 @@ def workout_wind_view(request,id=0,message="",successmessage=""):
except KeyError:
hascoordinates = 0
if not latitude.std():
if hascoordinates and not latitude.std():
hascoordinates = 0
try:
@@ -6958,6 +6958,7 @@ def workout_fusion_view(request,id1=0,id2=1):
if posneg == 'neg':
timeoffset = -timeoffset
# Create DataFrame
df = dataprep.datafusion(id1,id2,columns,timeoffset)
idnew,message = dataprep.new_workout_from_df(r,df,