|
@@ -19,7 +19,7 @@ def update_topic_result_by_id(param):
|
|
|
logger.info(f"task_id = {param.task_id} , 任务不存在")
|
|
logger.info(f"task_id = {param.task_id} , 任务不存在")
|
|
|
return None
|
|
return None
|
|
|
# 取旧值用于返回
|
|
# 取旧值用于返回
|
|
|
- result, status, error_reason, video_url, title = tasks['result'], tasks['task_status'], tasks['error_reason'], tasks['video_url'], tasks['title']
|
|
|
|
|
|
|
+ status, video_id, video_url, title = tasks['task_status'], tasks['video_id'], tasks['video_url'], tasks['title']
|
|
|
# 动态更新可传字段
|
|
# 动态更新可传字段
|
|
|
fields = []
|
|
fields = []
|
|
|
values = []
|
|
values = []
|
|
@@ -39,7 +39,7 @@ def update_topic_result_by_id(param):
|
|
|
sql = f"UPDATE decode_workflow SET {', '.join(fields)} WHERE task_id = %s"
|
|
sql = f"UPDATE decode_workflow SET {', '.join(fields)} WHERE task_id = %s"
|
|
|
values.append(param.task_id)
|
|
values.append(param.task_id)
|
|
|
mysql.execute(sql, tuple(values))
|
|
mysql.execute(sql, tuple(values))
|
|
|
- return result, status, error_reason, video_url, title
|
|
|
|
|
|
|
+ return video_id, status, video_url, title
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_topic_result_by_id(task_id:str):
|
|
def get_topic_result_by_id(task_id:str):
|