diff --git a/gather_new_user.py b/gather_new_user.py index a02fc06..60a903c 100644 --- a/gather_new_user.py +++ b/gather_new_user.py @@ -5,7 +5,7 @@ import datetime from ops.mmysql import MysqlBase import pdb -define_logger("/data/logs/init_first_ad_channel.log") +define_logger("/data/logs/gather_new_user.log") log = logging.getLogger(__name__) TimeDelay = 5 @@ -73,7 +73,7 @@ def gather_data(last_time, gameid, channelid, ad_channel): AND ad_channel={ad_channel} AND register_time BETWEEN {begin} AND {last_time}""" try: - data = mydb.query(total_user_sql) + data = mydb.query(new_user_sql) new_user = data[0][0] except Exception: log.error(f"get total user failed!{data}")