调整ad数据库的字段

This commit is contained in:
pengtao 2019-07-19 15:41:09 +08:00
parent cb5f8adab2
commit 5608b986b6

View File

@ -45,7 +45,8 @@ def send_cache_data():
log.error("split data failed", exc_info=True)
# 添加有天数限定的记录
get_data_sql = f"select id,name,ad_num,ad_title,ad_body,ad_image,jump_param,ad_sort,companyid,locationid,gameid,jump_status from'{now}'>begin_time and '{now}'<end_time ;"
get_data_sql = f"select id,name,ad_num,ad_title,ad_body,ad_image,jump_param,ad_sort,companyid,locationid,gameid," \
f"jump_status from ad where {now}'>begin_time and '{now}'<end_time ;"
data = mydb.query(get_data_sql)
if data: