From 2b5f3be41fc6a721acedf30957e963453effd97a Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 3 Sep 2019 12:04:55 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gather_new_user.py b/gather_new_user.py index 60a903c..ed7547f 100644 --- a/gather_new_user.py +++ b/gather_new_user.py @@ -54,7 +54,7 @@ def gather_data(last_time, gameid, channelid, ad_channel): gameid={gameid} AND channelid={channelid} AND ad_channel={ad_channel} - AND register_time <{last_time}""" + AND register_time <'{last_time}'""" try: data = mydb.query(total_user_sql) @@ -71,7 +71,7 @@ def gather_data(last_time, gameid, channelid, ad_channel): gameid={gameid} AND channelid={channelid} AND ad_channel={ad_channel} - AND register_time BETWEEN {begin} AND {last_time}""" + AND register_time BETWEEN '{begin}' AND '{last_time}'""" try: data = mydb.query(new_user_sql) new_user = data[0][0]