Revert "try only loading id in get_logged_in_user"

This reverts commit 56997bc06c.
master
Aevann 2023-07-27 22:54:49 +03:00
parent db1dab38ab
commit a3e88d99f7
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ def get_logged_in_user():
lo_user = session.get("lo_user")
if lo_user:
id = int(lo_user)
v = g.db.query(User).options(load_only(User.id)).filter_by(id=id).one_or_none()
v = get_account(id, graceful=True)
if v:
v.client = None
nonce = session.get("login_nonce", 0)