|
@@ -270,7 +270,9 @@ class UpdateDataTool:
|
|
|
|
|
|
if exists:
|
|
|
# 已存在则更新,不新建
|
|
|
- existing_id = exists[0][0] if isinstance(exists, list) and len(exists) > 0 else None
|
|
|
+ logger.info(f"exists类型: {type(exists)}, exists内容: {exists}")
|
|
|
+ logger.info(f"exists[0]类型: {type(exists[0])}, exists[0]内容: {exists[0]}")
|
|
|
+ existing_id = exists[0][0] if (isinstance(exists, (list, tuple)) and len(exists) > 0) else None
|
|
|
logger.info(f"提取existing_id: {existing_id}, 原始数据: {exists[0] if exists else 'None'}")
|
|
|
update_sql = (
|
|
|
"UPDATE knowledge_parsing_content "
|