From 02b8df562006569fdbda922a8b895fdf786741b8 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Wed, 17 Jan 2024 09:49:36 +0100 Subject: [PATCH] Update lollms_discussion.py --- endpoints/lollms_discussion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/endpoints/lollms_discussion.py b/endpoints/lollms_discussion.py index 695f1413..4cdfea0a 100644 --- a/endpoints/lollms_discussion.py +++ b/endpoints/lollms_discussion.py @@ -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