Explorar el Código

增加位置信息

罗俊辉 hace 1 año
padre
commit
18200bf518
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      applications/schedule/process_schedule.py

+ 2 - 1
applications/schedule/process_schedule.py

@@ -43,7 +43,8 @@ async def return_info(video_id, kimi_title, trace_id, mysql_client, index):
         "source": source,
         "rootShareId": root_share_id,
         "productionPath": productionPath,
-        "videoUrl": videoUrl
+        "videoUrl": videoUrl,
+        "paragraphPosition": index * 0.25
     }
     update_result_sql = f"""
                     UPDATE long_articles_video_dev