fix data
This commit is contained in:
parent
ef8d6dfd0a
commit
a1c2e8bfbe
@ -98,7 +98,7 @@ class TapWeeklyReport:
|
|||||||
return all_data
|
return all_data
|
||||||
|
|
||||||
def get_last_data(self, gameid, catename):
|
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
|
taptap_collect
|
||||||
where
|
where
|
||||||
catename='{catename}'
|
catename='{catename}'
|
||||||
@ -106,11 +106,11 @@ class TapWeeklyReport:
|
|||||||
data = self.db_conn.query(sql)
|
data = self.db_conn.query(sql)
|
||||||
|
|
||||||
try:
|
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:
|
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)
|
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):
|
def run(self):
|
||||||
all = dict()
|
all = dict()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user