Private
Public Access
1
0

through emails now

This commit is contained in:
Sander Roosendaal
2018-06-28 15:31:21 +02:00
parent 6acb5d9f49
commit 35b71c0b63
4 changed files with 29 additions and 29 deletions

View File

@@ -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