Update lollms_discussion.py

This commit is contained in:
Saifeddine ALOUI 2024-01-17 09:49:36 +01:00 committed by GitHub
parent 6cb0aa3011
commit 02b8df5620
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -176,8 +176,8 @@ async def delete_discussion(request: Request):
try:
data = (await request.json())
client_id = data.client_id
discussion_id = data.id
client_id = data.get("client_id")
discussion_id = data.get("id")
lollmsElfServer.connections[client_id]["current_discussion"] = Discussion(discussion_id, lollmsElfServer.db)
lollmsElfServer.connections[client_id]["current_discussion"].delete_discussion()
lollmsElfServer.connections[client_id]["current_discussion"] = None