Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,7 +87,7 @@ def loginAPI():
|
|
| 87 |
try:
|
| 88 |
response = (
|
| 89 |
supabase.table("users")
|
| 90 |
-
.select("username, password",
|
| 91 |
.eq("username", inUser)
|
| 92 |
.execute()
|
| 93 |
)
|
|
@@ -95,7 +95,7 @@ def loginAPI():
|
|
| 95 |
return f"Exception - {e}", 500
|
| 96 |
#if response["count"] == None:
|
| 97 |
# return
|
| 98 |
-
data = response
|
| 99 |
return data, 200
|
| 100 |
"""
|
| 101 |
data = response["data"]
|
|
|
|
| 87 |
try:
|
| 88 |
response = (
|
| 89 |
supabase.table("users")
|
| 90 |
+
.select("username, password", count="exact")
|
| 91 |
.eq("username", inUser)
|
| 92 |
.execute()
|
| 93 |
)
|
|
|
|
| 95 |
return f"Exception - {e}", 500
|
| 96 |
#if response["count"] == None:
|
| 97 |
# return
|
| 98 |
+
data = response.data
|
| 99 |
return data, 200
|
| 100 |
"""
|
| 101 |
data = response["data"]
|