tap order 数据写入mysql

This commit is contained in:
pengtao 2019-10-16 14:04:27 +08:00
parent 0fd704175f
commit 2891f878fa

View File

@ -34,7 +34,6 @@ class TapTapReport:
all_data = dict()
mydb = MysqlBase(**self.db_conf)
sql = f"select gameid,catename,`order`,date from taptap_order WHERE date='{day}'"
pdb.set_trace()
data = mydb.query(sql)
if data:
for line in data:
@ -42,7 +41,7 @@ class TapTapReport:
gameid, catename, order, date = line
key = f"{str(gameid)}#{catename}"
temp = {}
temp['day'] = order
temp[date] = order
all_data[key] = temp
except Exception:
log.error(f"split line failed,values={line}", exc_info=True)