This commit is contained in:
pengtao 2019-11-22 13:47:24 +08:00
parent 668e5cb00b
commit 53d09cc66e
2 changed files with 5 additions and 3 deletions

View File

@ -506,7 +506,7 @@ class TapWeeklyReport:
def __init__(self, day):
self.day = day
self.db_conn = MysqlBase(**db_conf)
self.limit = 20
self.limit = 2
self.all_type = {"download": {"name": "热门榜", "row": ["download"]}, "new": {"name": "新品榜", "row": ["download"]},
"reserve": {"name": "预约榜", "row": ["reserve"]}, "sell": {"name": "热卖榜", "row": ["sell"]},
@ -514,7 +514,7 @@ class TapWeeklyReport:
self.base_head = ["gameid", "title", "order", "min_order", "max_order", "diff_order"]
self.base_end = ["watch", "review", "topic", "score", "tags"]
self.row_cn = {"gameid": "游戏ID", "tile": "游戏名称", "order": "当前排名", "min_order": "最高排名", "max_order": "最低排名",
self.row_cn = {"gameid": "游戏ID", "title": "游戏名称", "order": "当前排名", "min_order": "最高排名", "max_order": "最低排名",
"diff_order": "排名变动", "download": "下载数", "reserve": "预约数", "sell": "购买数", "watch": "关注数",
"review": "评论数", "topic": "话题", "score": "评分", "tags": "游戏标签"}

View File

@ -19,11 +19,13 @@
<table>
<thead>
<th>
{% for row_name_one in key.get('row_name') %}
<tr>
<th>{{ row_name_one }}</th>
<td>{{ row_name_one }}</td>
{% endfor %}
</tr>
</th>>
</thead>
<tbody>
<tr>