Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -93,9 +93,9 @@ def loginAPI():
|
|
| 93 |
)
|
| 94 |
except Exception as e:
|
| 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"]
|
|
|
|
| 93 |
)
|
| 94 |
except Exception as e:
|
| 95 |
return f"Exception - {e}", 500
|
|
|
|
|
|
|
| 96 |
data = response.data
|
| 97 |
+
if data == []:
|
| 98 |
+
return make_response(json.dump{"message": "Username does not exist"}), 401
|
| 99 |
return data, 200
|
| 100 |
"""
|
| 101 |
data = response["data"]
|