fix: broken tuple expansion

This commit is contained in:
Jun Siang Cheah 2024-06-21 13:44:10 +01:00
parent 4aab460905
commit 922dfae51c

View File

@ -131,7 +131,7 @@ class UsersTable:
if not oauth_user if not oauth_user
else (User.email == email) else (User.email == email)
) )
user = User.get(conditions) user = User.get(*conditions)
return UserModel(**model_to_dict(user)) return UserModel(**model_to_dict(user))
except: except:
return None return None