diff --git a/website/web/helpers.py b/website/web/helpers.py index cc8aacc..65a7c8a 100644 --- a/website/web/helpers.py +++ b/website/web/helpers.py @@ -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]: