From 2b39e072e1498a8b7426b50ffa12f48428f1cffb Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 16 Jul 2019 20:05:33 +0800 Subject: [PATCH] revome gameid from localtion --- ad_interface_tornado.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ad_interface_tornado.py b/ad_interface_tornado.py index c0f1078..e021720 100644 --- a/ad_interface_tornado.py +++ b/ad_interface_tornado.py @@ -18,6 +18,7 @@ log = logging.getLogger(__name__) def send_cache_data(): + log.info("start!") now = datetime.datetime.today().strftime("%Y-%m-%d %H:%M:%S") all = [] # 添加无天数限定的记录 @@ -77,6 +78,7 @@ def send_cache_data(): def remove_expire_data(): + log.info("revome !") now = datetime.datetime.today().strftime("%Y-%m-%d %H:%M:%S") sql = f"select id,gameid,locationid from ad where '{now}'>=end_time" data = mydb.query(sql)