Explorar o código

读取sql时 project_name 修改为 query_word

liyuyi@c-top.com.cn %!s(int64=4) %!d(string=hai) anos
pai
achega
e7e0622a62
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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用