添加导出率

This commit is contained in:
pengtao 2019-10-23 10:29:37 +08:00
parent 68e9a19e20
commit cc9dc2192f
2 changed files with 26 additions and 26 deletions

View File

@ -341,5 +341,5 @@ def main():
if __name__ == "__main__": if __name__ == "__main__":
main() #main()
#app.run(host='0.0.0.0', port=6700, debug=False) app.run(host='0.0.0.0', port=6700, debug=False)

View File

@ -5,18 +5,18 @@
<title>金蚕游戏日报By ops</title> <title>金蚕游戏日报By ops</title>
</head> </head>
<body> <body>
{% for line in data %}
<h2> <h2>
<strong> <strong>
<span style="font-size:18px;">游戏内容</span> <span style="font-size:18px;">游戏内容</span>
</strong> </strong>
<!-- <span style="font-size:18px;">all{{data}}</span> --> <!-- <span style="font-size:18px;">all{{data}}</span> -->
<span style="font-size:18px;">游戏ID{{data['gameid']}}</span><br> <span style="font-size:18px;">游戏ID{{line['gameid']}}</span><br>
<span style="font-size:18px;">渠道ID{{data['channelid']}}</span><br> <span style="font-size:18px;">渠道ID{{line['channelid']}}</span><br>
<span style="font-size:18px;">日期:{{data['day']}}</span><br>
</h2> </h2>
<h3> <h3>
<strong> <strong>
@ -37,7 +37,7 @@
</tr> </tr>
<tbody> <tbody>
{% for item in data.get('all') %} {% for item in line.get('all') %}
<tr> <tr>
<td>{{ item }}</td> <td>{{ item }}</td>
{% endfor %} {% endfor %}
@ -50,21 +50,21 @@
<h1>导入数据:</h1>> <h1>导入数据:</h1>>
<tr> <tr>
<!--('wxdb103a128e118619', '拯救熊猫泡泡', 2, 1, 0, 0.0)--> <!--('wxdb103a128e118619', '拯救熊猫泡泡', 2, 1, 0, 0.0)-->
<td>渠道ID</td> <th>渠道ID</th>
<td>游戏名称</td> <th>游戏名称</th>
<td>活跃</td> <th>活跃</th>
<td>新增</td> <th>新增</th>
<td>分享</td> <th>分享</th>
<td>K值</td> <th>K值</th>
<br> <br>
</tr> </tr>
{% for line in data.get('input') %} {% for one in line.get('input') %}
<tr> <tr>
{%for item in line%} {% for item in one %}
<th>{{ item }}</th> <td>{{ item }}</td>
{% endfor %} {% endfor %}
</tr> </tr>
<br> <br>
@ -72,18 +72,18 @@
<h1>导出数据:</h1>> <h1>导出数据:</h1>>
<tr> <tr>
<td>渠道ID</td> <th>渠道ID</th>
<td>跳转目标</td> <th>跳转目标</th>
<td>跳转次数</td> <th>跳转次数</th>
<td>跳转人数</td> <th>跳转人数</th>
<br> <br>
</tr> </tr>
{% for line in data.get('output') %} {% for one in data.get('output') %}
<tr> <tr>
{% for item in line %} {% for item in one %}
<th>{{ item }}</th> <td>{{ item }}</td>
{% endfor %} {% endfor %}
</tr> </tr>