fix data
This commit is contained in:
parent
ef8d6dfd0a
commit
a1c2e8bfbe
@ -98,7 +98,7 @@ class TapWeeklyReport:
|
||||
return all_data
|
||||
|
||||
def get_last_data(self, gameid, catename):
|
||||
sql = f"""select gameid,title,score,tags,`order`,watch,download,sell,review,reserve,topic from
|
||||
sql = f"""select title,score,tags,`order`,watch,download,sell,review,reserve,topic from
|
||||
taptap_collect
|
||||
where
|
||||
catename='{catename}'
|
||||
@ -106,11 +106,11 @@ class TapWeeklyReport:
|
||||
data = self.db_conn.query(sql)
|
||||
|
||||
try:
|
||||
gameid, title, score, tags, order, watch, download, sell, review, reserve, topic = data[0]
|
||||
title, score, tags, order, watch, download, sell, review, reserve, topic = data[0]
|
||||
except Exception:
|
||||
gameid, title, score, tags, order, watch, download, sell, review, reserve, topic = None
|
||||
title, score, tags, order, watch, download, sell, review, reserve, topic = None
|
||||
log.error(f"get last info data failed", exc_info=True)
|
||||
return (gameid, title, score, tags, order, watch, download, sell, review, reserve, topic)
|
||||
return (title, score, tags, order, watch, download, sell, review, reserve, topic)
|
||||
|
||||
def run(self):
|
||||
all = dict()
|
||||
|
Loading…
x
Reference in New Issue
Block a user