fix chatmanger bug

This commit is contained in:
CakeCN
2025-09-12 15:02:56 +08:00
parent 33d321070d
commit 21e8e311a7

View File

@@ -33,7 +33,6 @@ def desktop(user_uuid, course_id, chapter_name, lesson_name):
print(f"Error creating directory {path_dir} details {str(e)}")
chatmanager = ChatManager()
chatmanager.init(user_uuid, user_id, path_dir)
current_app.extensions["user_uuid2chatmanager"][user_uuid] = chatmanager
code_server_port = 10000 + int(uuid.uuid4().int % 10000)
chatmanager.start_code_server(user_uuid, user_id, path_dir, code_server_port)