传递日期参数

This commit is contained in:
pengtao 2019-10-23 15:27:53 +08:00
parent 72f4f9ea07
commit e071eda29b

View File

@ -73,7 +73,7 @@ def send_dailyreport():
print(data)
#data[day] = day
msg.subject = f"{project}_{day}_数据"
msg.html = render_template('report.html', data=data)
msg.html = render_template('report.html', data=data, day=day)
thread = Thread(target=send_async_email, args=[app, msg])
thread.start()