mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
Update lollms_discussion.py
This commit is contained in:
parent
6cb0aa3011
commit
02b8df5620
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user