Spaces:
Sleeping
Sleeping
MM58-crypto commited on
Commit ·
5643ebb
1
Parent(s): 196389f
wooo another commit
Browse files
main.py
CHANGED
|
@@ -163,7 +163,7 @@ async def user_session_management(request: Request, call_next):
|
|
| 163 |
session = None
|
| 164 |
|
| 165 |
# this if statement is not running OR session_id is never saved and found on mongodb
|
| 166 |
-
if
|
| 167 |
retrieved_session = collection.find_one({"_id": session_id})
|
| 168 |
print("FOUND SESSION:", session is not None)
|
| 169 |
if retrieved_session:
|
|
|
|
| 163 |
session = None
|
| 164 |
|
| 165 |
# this if statement is not running OR session_id is never saved and found on mongodb
|
| 166 |
+
if session:
|
| 167 |
retrieved_session = collection.find_one({"_id": session_id})
|
| 168 |
print("FOUND SESSION:", session is not None)
|
| 169 |
if retrieved_session:
|