Merge pull request #473 from ParisNeo/ParisNeo-patch-1

Update lollms_discussion.py
This commit is contained in:
Saifeddine ALOUI 2024-01-17 09:49:56 +01:00 committed by GitHub
commit e78c98478e
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