bugfix mail processing
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -48,7 +48,6 @@ class Command(BaseCommand):
|
||||
cntr = 0
|
||||
for a in attachments:
|
||||
extension = a.document.name[-3:].lower()
|
||||
print "aap ",extension
|
||||
donotdelete = 0
|
||||
m = Message.objects.get(id=a.message_id)
|
||||
from_address = m.from_address[0].lower()
|
||||
|
||||
Reference in New Issue
Block a user