添加广告显示状态判定

This commit is contained in:
pengtao 2019-10-28 11:13:24 +08:00
parent a212e485db
commit da10c363eb
2 changed files with 8 additions and 4 deletions

View File

@ -60,7 +60,7 @@ def send_async_email(app, msg):
@app.route('/send-dailyreport')
def send_dailyreport():
title = "主题"
title = "OPS报表"
msg = Message(title, sender=sender, recipients=recipients)
@ -72,8 +72,12 @@ def send_dailyreport():
data = rp.run()
print(data)
#data[day] = day
if project==2001:
msg.subject = f"求生之岛_{day}_游戏日报"
else:
msg.subject = f"休闲游戏_{day}_游戏日报"
if data:
msg.subject = f"{project}_{day}_数据"
msg.html = render_template('report.html', data=data, day=day)
thread = Thread(target=send_async_email, args=[app, msg])

View File

@ -127,7 +127,7 @@
</div>
<div class="panel">
<h2>导入数据</h2>
<h2>买量数据</h2>
<table>
<thead>
<tr>
@ -152,7 +152,7 @@
</div>
<div class="panel">
<h2>导出数据:</h2>
<h2>卖量数据:</h2>
<table>
<thead>
<tr>