Private
Public Access
1
0

bugfix mail processing

This commit is contained in:
Sander Roosendaal
2017-02-14 20:52:10 +01:00
parent af4c5dbc2b
commit 2d1cfef521
2 changed files with 2 additions and 3 deletions

View File

@@ -211,8 +211,8 @@ def make_new_workout_from_email(rr,f2,name,cntr=0):
f2 = 'media/'+timestr+str(cntr)+'o.csv'
try:
avglat = rowdata.df[' latitude'].mean()
avglon = rowdata.df[' longitude'].mean()
avglat = row.df[' latitude'].mean()
avglon = row.df[' longitude'].mean()
if avglat != 0 or avglon != 0:
workouttype = 'water'
except KeyError: