mirror of https://github.com/Mai-with-u/MaiBot.git
修复一些错误
parent
4ca3744072
commit
d84b030fa6
|
|
@ -258,7 +258,7 @@ class MongoToSQLiteMigrator:
|
||||||
"heartflow_data": "heartflow_data_json",
|
"heartflow_data": "heartflow_data_json",
|
||||||
"reasoning_data": "reasoning_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:
|
try:
|
||||||
if target_field.name == "record_time" and field_type == "DateTimeField":
|
if target_field.name == "record_time" and field_type == "DateTimeField":
|
||||||
return datetime.now()
|
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 field_type in ["CharField", "TextField"]:
|
||||||
if isinstance(value, (list, dict)):
|
if isinstance(value, (list, dict)):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue