Fixed "TypeError" for UserInDB

This commit is contained in:
Profitroll 2023-11-25 18:17:17 +01:00
parent e5fad5ba92
commit afefea6f68
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2

View File

@ -90,7 +90,9 @@ async def get_user(user: str) -> UserInDB:
return UserInDB(
user=found_user["user"],
email=found_user["email"],
quota=found_user["quota"],
quota=found_user["quota"]
if found_user["quota"] is not None
else configGet("default_user_quota"),
disabled=found_user["disabled"],
hash=found_user["hash"],
)