6 Commits

2 changed files with 4 additions and 2 deletions

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"],
)

View File

@@ -37,7 +37,7 @@ parser = ArgumentParser(
parser.add_argument("--migrate", action="store_true")
args = parser.parse_args()
args, unknown = parser.parse_known_args()
if args.migrate:
migrate_database()