diff --git a/ad_interface_tornado.py b/ad_interface_tornado.py index a3a5590..4afacb6 100644 --- a/ad_interface_tornado.py +++ b/ad_interface_tornado.py @@ -83,7 +83,7 @@ def send_cache_data(): def remove_expire_data(): now = datetime.datetime.today().strftime("%Y-%m-%d %H:%M:%S") - sql = f"select id,gameid,locationid from ad where {now}>=end_time" + sql = f"select id,gameid,locationid from ad where '{now}'>=end_time" data = mydb.query(sql) if data: for line in data: