添加广告显示状态判定
This commit is contained in:
parent
a212e485db
commit
da10c363eb
@ -60,7 +60,7 @@ def send_async_email(app, msg):
|
|||||||
|
|
||||||
@app.route('/send-dailyreport')
|
@app.route('/send-dailyreport')
|
||||||
def send_dailyreport():
|
def send_dailyreport():
|
||||||
title = "主题"
|
title = "OPS报表"
|
||||||
msg = Message(title, sender=sender, recipients=recipients)
|
msg = Message(title, sender=sender, recipients=recipients)
|
||||||
|
|
||||||
|
|
||||||
@ -72,8 +72,12 @@ def send_dailyreport():
|
|||||||
data = rp.run()
|
data = rp.run()
|
||||||
print(data)
|
print(data)
|
||||||
#data[day] = day
|
#data[day] = day
|
||||||
|
|
||||||
|
if project==2001:
|
||||||
|
msg.subject = f"求生之岛_{day}_游戏日报"
|
||||||
|
else:
|
||||||
|
msg.subject = f"休闲游戏_{day}_游戏日报"
|
||||||
if data:
|
if data:
|
||||||
msg.subject = f"{project}_{day}_数据"
|
|
||||||
msg.html = render_template('report.html', data=data, day=day)
|
msg.html = render_template('report.html', data=data, day=day)
|
||||||
|
|
||||||
thread = Thread(target=send_async_email, args=[app, msg])
|
thread = Thread(target=send_async_email, args=[app, msg])
|
||||||
|
@ -127,7 +127,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<h2>导入数据</h2>
|
<h2>买量数据</h2>
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -152,7 +152,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<h2>导出数据:</h2>
|
<h2>卖量数据:</h2>
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user