fix: return from is_valid_username

pull/912/head
Adrian Maraj 2024-05-02 16:11:57 +02:00
parent 7b06ce399b
commit 6595d92df0
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ def load_user_from_request(request: Request) -> User | None:
return None
def is_valid_username(username: str) -> bool:
return re.match("^[A-Za-z0-9]+$", username)
return bool(re.match("^[A-Za-z0-9]+$", username))
@lru_cache(64)
def build_keys_table() -> dict[str, str]: