fix some error

This commit is contained in:
pengtao 2019-07-16 10:10:19 +08:00
parent 68ad30e1f6
commit af2cee98f5

View File

@ -83,7 +83,7 @@ def send_cache_data():
def remove_expire_data(): def remove_expire_data():
now = datetime.datetime.today().strftime("%Y-%m-%d %H:%M:%S") 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) data = mydb.query(sql)
if data: if data:
for line in data: for line in data: