Browse Source

入数据库时 project_name 修改为 query_word

liyuyi@c-top.com.cn 4 years ago
parent
commit
bf3336b072
1 changed files with 2 additions and 2 deletions
  1. 2 2
      get_video_from_ocean_engine.py

+ 2 - 2
get_video_from_ocean_engine.py

@@ -58,7 +58,7 @@ def get_material_info(project_name, period_type):
     material_df.rename(columns={'vid': 'signature'}, inplace=True)
 
     # 添加项目名称和日期
-    material_df['project_name'] = project_name
+    material_df['query_word'] = project_name
     material_df['stat_date'] = datetime.datetime.today().strftime('%Y-%m-%d')
 
     # 写入数据库
@@ -119,7 +119,7 @@ def get_video_info(vid, project_name):
     video_df.drop(labels='video_id', axis=1, inplace=True)
 
     # 添加项目名称和日期
-    video_df['project_name'] = project_name
+    video_df['query_word'] = project_name
     video_df['stat_date'] = datetime.datetime.today().strftime('%Y-%m-%d')
 
     # 写入数据库