fix some error
This commit is contained in:
parent
68ad30e1f6
commit
af2cee98f5
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user