This commit is contained in:
pengtao 2019-11-20 15:08:35 +08:00
parent e079bc2b62
commit 49cbbcaf33

View File

@ -33,7 +33,7 @@ class TapWeeklyReport:
sql = f"""select
gameid,
title,
min(`order`), sum(diff_order), sum(diff_watch), sum(diff_download), sum(diff_topic), score
min(`order`), max(order)
from
taptap_collect
where
@ -41,8 +41,7 @@ class TapWeeklyReport:
and date in ({weekly_day})
group by
gameid
order by
sum(diff_order) desc limit {self.limit};"""
"""
data = self.db_conn.query(sql)
if data: