revome gameid from localtion
This commit is contained in:
parent
d290fcf4f5
commit
2b39e072e1
@ -18,6 +18,7 @@ log = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
def send_cache_data():
|
def send_cache_data():
|
||||||
|
log.info("start!")
|
||||||
now = datetime.datetime.today().strftime("%Y-%m-%d %H:%M:%S")
|
now = datetime.datetime.today().strftime("%Y-%m-%d %H:%M:%S")
|
||||||
all = []
|
all = []
|
||||||
# 添加无天数限定的记录
|
# 添加无天数限定的记录
|
||||||
@ -77,6 +78,7 @@ def send_cache_data():
|
|||||||
|
|
||||||
|
|
||||||
def remove_expire_data():
|
def remove_expire_data():
|
||||||
|
log.info("revome !")
|
||||||
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user