(20250623) - Tested working now session extraction

This commit is contained in:
yatmesh
2025-06-23 12:25:47 +05:30
parent 5fe00a71fc
commit 1593b01db0
+1 -4
View File
@@ -90,8 +90,7 @@ async def get_session(session_token) -> CoreUserInfoModel:
try: try:
# Fetch the raw info from cache: # Fetch the raw info from cache:
raw_info = await current_app.module_cache.get(key = session_token, raise_exception=True) raw_info = await current_app.module_cache.get(key = session_token)
print("RAW INFO", raw_info)
# Feed needed field into the core model: # Feed needed field into the core model:
session_info = CoreUserInfoModel( session_info = CoreUserInfoModel(
fullName = raw_info["full_name"], fullName = raw_info["full_name"],
@@ -105,13 +104,11 @@ async def get_session(session_token) -> CoreUserInfoModel:
) )
# Done here: # Done here:
print("SESSION INFO", session_info)
return session_info return session_info
# In case something goes wrong: # In case something goes wrong:
except Exception as exception: except Exception as exception:
current_app.printer(exception) current_app.printer(exception)
raise exception
return None return None