Fix import time for avatar URL generation

parent 4281720c
......@@ -41,6 +41,7 @@ def get_current_user_session():
print(f"DEBUG: User email: {user.get('email')}")
print(f"DEBUG: User avatar: {user.get('avatar')}")
if user.get('avatar'):
import time
user['avatar_url'] = f"/static/avatars/{user['avatar']}?t={int(time.time())}"
print(f"DEBUG: Custom avatar URL set: {user['avatar_url']}")
elif user.get('email'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment