调整仅仅 2001 计算倒量数据

This commit is contained in:
pengtao 2019-12-13 11:47:55 +08:00
parent a7b9d59f51
commit 025c3ec0d5
2 changed files with 8 additions and 2 deletions

View File

@ -245,13 +245,14 @@ class Report:
activa = args['tga'].get_data(activa_sql)[0][0] or 0
new = args['tga'].get_data(new_sql)[0][0] or 0
share = args['tga'].get_data(share_sql)[0][0] or 0
jumpout = args['tga'].get_data(jumpout_sql)[0][0] or 0
if activa:
timeonlie = round(int(args['tga'].get_data(timeonlie_sql)[0][0] or 0) / activa, 2)
jump_per = round((100 * jumpout) / activa, 2)
else:
timeonlie = 0
jump_per = 0
jumpout = args['tga'].get_data(jumpout_sql)[0][0] or 0
jump_per = round((100 * jumpout) / activa, 2)
if args['gameid'] not in self.not_minigames:
ad_101 = args['tga'].get_data(ad_101_sql)[0][0] or 0
ad_1 = args['tga'].get_data(ad_1_sql)[0][0] or 0

View File

@ -126,6 +126,8 @@
</table>
</div>
{% if line.input %}
<div class="panel">
<h2>买量数据</h2>
<table>
@ -150,7 +152,9 @@
</tbody>
</table>
</div>
{% endif %}
{% if line.output %}
<div class="panel">
<h2>卖量数据:</h2>
<table>
@ -172,6 +176,7 @@
</tbody>
</table>
</div>
{% endif %}
</div>
{% endfor %}
</body>