mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-30 09:03:15 +00:00
style in button and user in back route delete all conv
This commit is contained in:
@@ -39,7 +39,8 @@ def delete_conversation():
|
||||
|
||||
@user.route("/api/delete_all_conversations", methods=["POST"])
|
||||
def delete_all_conversations():
|
||||
conversations_collection.delete_many({})
|
||||
user_id = "local"
|
||||
conversations_collection.delete_many({"user":user_id})
|
||||
return {"status": "ok"}
|
||||
|
||||
@user.route("/api/get_conversations", methods=["get"])
|
||||
|
||||
Reference in New Issue
Block a user