through emails now
This commit is contained in:
@@ -207,20 +207,23 @@ def handle_strava_import_stroke_data(title,
|
||||
|
||||
df.sort_values(by='TimeStamp (sec)',ascending=True)
|
||||
|
||||
res = df.to_csv(csvfilename+'.gz',index_label='index',compression='gzip')
|
||||
res = df.to_csv(csvfilename,index_label='index')
|
||||
|
||||
d = {
|
||||
'some_attribute':1
|
||||
'stravaid':stravaid
|
||||
}
|
||||
|
||||
res = send_template_email(useremail,[workoutemailbox],
|
||||
title,'workoutemail.html',
|
||||
d,
|
||||
attach_file=csvfilename+'.gz')
|
||||
attach_file=csvfilename)
|
||||
|
||||
os.remove(csvfilename+'.gz')
|
||||
|
||||
return 1
|
||||
time.sleep(1)
|
||||
|
||||
os.remove(csvfilename)
|
||||
|
||||
return res
|
||||
|
||||
|
||||
@app.task
|
||||
|
||||
Reference in New Issue
Block a user