Merge branch 'dev' of https://github.com/MoFox-Studio/MoFox_Bot into dev
This commit is contained in:
@@ -262,7 +262,7 @@ class ExpressionLearner:
|
|||||||
|
|
||||||
if new_count <= 0.01:
|
if new_count <= 0.01:
|
||||||
# 如果count太小,删除这个表达方式
|
# 如果count太小,删除这个表达方式
|
||||||
session.delete(expr)
|
await session.delete(expr)
|
||||||
await session.commit()
|
await session.commit()
|
||||||
deleted_count += 1
|
deleted_count += 1
|
||||||
else:
|
else:
|
||||||
@@ -536,7 +536,7 @@ class ExpressionLearnerManager:
|
|||||||
return
|
return
|
||||||
|
|
||||||
if os.path.exists(done_flag):
|
if os.path.exists(done_flag):
|
||||||
logger.info("表达方式JSON已迁移,无需重复迁移。")
|
logger.debug("表达方式JSON已迁移,无需重复迁移。")
|
||||||
return
|
return
|
||||||
|
|
||||||
logger.info("开始迁移表达方式JSON到数据库...")
|
logger.info("开始迁移表达方式JSON到数据库...")
|
||||||
|
|||||||
Reference in New Issue
Block a user