فهرست منبع

读取sql时 project_name 修改为 query_word

liyuyi@c-top.com.cn 4 سال پیش
والد
کامیت
e7e0622a62
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      get_high_quality_script.py

+ 1 - 1
get_high_quality_script.py

@@ -106,7 +106,7 @@ if __name__ == '__main__':
             if 0 in channel:
                 logger.info("项目:%s, 巨量引擎外部素材,开始执行!" % project_name)
                 sql = """select signature, video_url  from ctop_ai_video_info_from_ocean_engine 
-                where project_name = '%s' and stat_date >= '%s'""" % (project_name, one_week_date)
+                where query_word = '%s' and stat_date >= '%s'""" % (project_name, one_week_date)
                 df = pd.read_sql(sql, test_read_engine)
 
                 # 把 video_url 替换为永久的链接, 导出excel用