revome gameid from localtion

This commit is contained in:
pengtao 2019-07-16 20:05:33 +08:00
parent d290fcf4f5
commit 2b39e072e1

View File

@ -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)