mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-31 08:25:24 +00:00
Merge pull request #473 from ParisNeo/ParisNeo-patch-1
Update lollms_discussion.py
This commit is contained in:
commit
e78c98478e
@ -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…
x
Reference in New Issue
Block a user