From 38d4c0772705c9f0c6affd4828dbe31f5c20fb35 Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 3 Sep 2019 12:09:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E6=97=B6=E6=96=B0=E5=A2=9E=E4=BA=BA?= =?UTF-8?q?=E6=95=B0=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gather_new_user.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gather_new_user.py b/gather_new_user.py index 98c98cf..3df950b 100644 --- a/gather_new_user.py +++ b/gather_new_user.py @@ -22,11 +22,12 @@ def get_last_time(gameid, channelid, ad_channel): where gameid={gameid} and channelid={channelid} - and ad_channel={ad_channel} + and ad_channel='{ad_channel}' ORDER BY register_time DESC LIMIT 1""" data = mydb.query(sql) try: + pdb.set_trace() last_time = data[0][0] except Exception: log.info("get last time form db failed!", exc_info=True)