This commit is contained in:
pengtao 2019-11-20 19:53:54 +08:00
parent a1c2e8bfbe
commit 62163a7667

View File

@ -113,6 +113,7 @@ class TapWeeklyReport:
return (title, score, tags, order, watch, download, sell, review, reserve, topic)
def run(self):
table_name = "tap_weekly"
all = dict()
data = self.build()
for gameid in data.keys():
@ -132,7 +133,7 @@ class TapWeeklyReport:
all['reserve'] = data[gameid][catename].get('reserve', 0)
all['topic'] = data[gameid][catename].get('topic', 0)
all['date'] = self.day
self.db_conn.insert(table_name, all)
print(all)