Spaces:
Sleeping
Sleeping
UPDATE: QDRANT
Browse files- functions.py +1 -2
functions.py
CHANGED
|
@@ -44,8 +44,7 @@ prompt = ChatPromptTemplate.from_template(prompt)
|
|
| 44 |
|
| 45 |
def createUser(username: str, password: str) -> None:
|
| 46 |
userData = client.table("ConversAI_UserInfo").select("*").execute().data
|
| 47 |
-
|
| 48 |
-
if username not in [userData[x]["username"] for x in userData]:
|
| 49 |
response = (
|
| 50 |
client.table("ConversAI_UserInfo")
|
| 51 |
.insert({"username": username, "password": password})
|
|
|
|
| 44 |
|
| 45 |
def createUser(username: str, password: str) -> None:
|
| 46 |
userData = client.table("ConversAI_UserInfo").select("*").execute().data
|
| 47 |
+
if username not in [userData[x]["username"] for x in range(len(userData))]:
|
|
|
|
| 48 |
response = (
|
| 49 |
client.table("ConversAI_UserInfo")
|
| 50 |
.insert({"username": username, "password": password})
|