Rauhan commited on
Commit
9b6b7e0
·
1 Parent(s): ecf3a0b

DEBUG: List Chatbots

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. functions.py +1 -1
app.py CHANGED
@@ -137,7 +137,7 @@ async def newChatbot(chatbotName: str, username: str):
137
  "output": "CHATBOT LIMIT EXCEEDED"
138
  }
139
  client.table("ConversAI_ChatbotInfo").insert({"user_id": username, "chatbotname": chatbotName}).execute()
140
- chatbotName = f"convai-{username}-{chatbotName}"
141
  return createTable(tablename=chatbotName)
142
 
143
 
 
137
  "output": "CHATBOT LIMIT EXCEEDED"
138
  }
139
  client.table("ConversAI_ChatbotInfo").insert({"user_id": username, "chatbotname": chatbotName}).execute()
140
+ chatbotName = f"convai|{username}|{chatbotName}"
141
  return createTable(tablename=chatbotName)
142
 
143
 
functions.py CHANGED
@@ -261,7 +261,7 @@ def listTables(username: str):
261
  global qdrantClient
262
  qdrantCollections = qdrantClient.get_collections()
263
  return {
264
- "output": list(filter(lambda x: True if x.split("-")[1] == username else False,
265
  [x.name for x in qdrantCollections.collections]))
266
  }
267
  except Exception as e:
 
261
  global qdrantClient
262
  qdrantCollections = qdrantClient.get_collections()
263
  return {
264
+ "output": list(filter(lambda x: True if x.split("|")[1] == username else False,
265
  [x.name for x in qdrantCollections.collections]))
266
  }
267
  except Exception as e: