修复一些错误

pull/996/head
A0000Xz 2025-05-28 18:32:38 +08:00 committed by GitHub
parent 4ca3744072
commit d84b030fa6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 4 deletions

View File

@ -258,7 +258,7 @@ class MongoToSQLiteMigrator:
"heartflow_data": "heartflow_data_json",
"reasoning_data": "reasoning_data_json",
},
unique_fields=["chat_id", "created_at"]
unique_fields=["chat_id", "trigger_text"]
),
# 图节点迁移配置
@ -350,9 +350,6 @@ class MongoToSQLiteMigrator:
try:
if target_field.name == "record_time" and field_type == "DateTimeField":
return datetime.now()
if target_field.name == "record_time" and field_type == "DateTimeField":
return self._convert_record_time(value)
if field_type in ["CharField", "TextField"]:
if isinstance(value, (list, dict)):