|
@@ -6,6 +6,7 @@ import json
|
|
|
|
|
|
from applications.functions.common import request_for_info, create_gzh_path
|
|
|
from applications.functions.log import logging
|
|
|
+from applications.static.config import db_article
|
|
|
|
|
|
|
|
|
async def return_info_v2(video_id, trace_id, mysql_client):
|
|
@@ -44,7 +45,7 @@ async def return_info_v2(video_id, trace_id, mysql_client):
|
|
|
"paragraphPosition": 0.25
|
|
|
}
|
|
|
update_result_sql = f"""
|
|
|
- UPDATE long_articles_video
|
|
|
+ UPDATE {db_article}
|
|
|
SET
|
|
|
result1 = '{json.dumps(result, ensure_ascii=False)}',
|
|
|
success = 1
|
|
@@ -105,7 +106,7 @@ async def return_info(video_id, kimi_title, trace_id, mysql_client, index):
|
|
|
"paragraphPosition": index * 0.25
|
|
|
}
|
|
|
update_result_sql = f"""
|
|
|
- UPDATE long_articles_video
|
|
|
+ UPDATE {db_article}
|
|
|
SET
|
|
|
result{index} = '{json.dumps(result, ensure_ascii=False)}',
|
|
|
success = 1
|
|
@@ -136,7 +137,7 @@ async def recall_videos(trace_id, mysql_client):
|
|
|
"""
|
|
|
select_sql = f"""
|
|
|
SELECT recall_video_id1, recall_video_id2, recall_video_id3, kimi_title
|
|
|
- FROM long_articles_video
|
|
|
+ FROM {db_article}
|
|
|
WHERE trace_id = '{trace_id}';
|
|
|
"""
|
|
|
info_tuple = await mysql_client.async_select(select_sql)
|