1.添加定时任务(每天凌晨四点处理redis记录的删除,存储入mysql持久化操作)
2.修复了prompt中没有用户输入信息的bug 3.优化了更新类接口代码(删除了db.add()代码)
This commit is contained in:
1 parent
de370f77ac
commit
065528f509
7 files changed
+65
-16
No files matched your search
@@ -42,7 +42,6 @@ async def update_character_handler(character_id: int, character: CharacterUpdate
|
||||
existing_character.dialogues = character.dialogues
|
||||
|
||||
try:
|
||||
db.add(existing_character)
|
||||
db.commit()
|
||||
except Exception as e:
|
||||
db.rollback()
|
||||
|
||||
Reference in new issue
Block a user