From 2891f878fa65598c50a15af874ec720660e9bd7d Mon Sep 17 00:00:00 2001 From: pengtao Date: Wed, 16 Oct 2019 14:04:27 +0800 Subject: [PATCH] =?UTF-8?q?tap=20order=20=20=E6=95=B0=E6=8D=AE=E5=86=99?= =?UTF-8?q?=E5=85=A5mysql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- taptap/taptap_report.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/taptap/taptap_report.py b/taptap/taptap_report.py index c849993..5dfe6fa 100644 --- a/taptap/taptap_report.py +++ b/taptap/taptap_report.py @@ -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)