Merge branch 'hotfix/emailprocessing'
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'
|
f2 = 'media/'+timestr+str(cntr)+'o.csv'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
avglat = rowdata.df[' latitude'].mean()
|
avglat = row.df[' latitude'].mean()
|
||||||
avglon = rowdata.df[' longitude'].mean()
|
avglon = row.df[' longitude'].mean()
|
||||||
if avglat != 0 or avglon != 0:
|
if avglat != 0 or avglon != 0:
|
||||||
workouttype = 'water'
|
workouttype = 'water'
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ class Command(BaseCommand):
|
|||||||
cntr = 0
|
cntr = 0
|
||||||
for a in attachments:
|
for a in attachments:
|
||||||
extension = a.document.name[-3:].lower()
|
extension = a.document.name[-3:].lower()
|
||||||
print "aap ",extension
|
|
||||||
donotdelete = 0
|
donotdelete = 0
|
||||||
m = Message.objects.get(id=a.message_id)
|
m = Message.objects.get(id=a.message_id)
|
||||||
from_address = m.from_address[0].lower()
|
from_address = m.from_address[0].lower()
|
||||||
|
|||||||
Reference in New Issue
Block a user