From 6b6f20a032eb31d747366c8bc270ca81731eaf6a Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Fri, 4 Sep 2026 17:09:24 +0200 Subject: Fixed pre-commit issues --- authentication/utils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'authentication/utils.py') diff --git a/authentication/utils.py b/authentication/utils.py index 4f19bc3..b0c9989 100644 --- a/authentication/utils.py +++ b/authentication/utils.py @@ -15,11 +15,11 @@ def bcrypt_sha256_hash(password: str) -> str: def bcrypt_sha256_verify(password: str, hashed: str) -> bool: digest = hashlib.sha256(password.encode("utf-8")).digest() encoded = base64.b64encode(digest) - return bcrypt.checkpw(encoded, hashed.encode('utf-8')) + return bcrypt.checkpw(encoded, hashed.encode("utf-8")) -def get_url_path_with_query(app: FastAPI, name: str, params: dict | None = None, /, **path_params: str): +def get_url_path_with_query( + app: FastAPI, name: str, params: dict | None = None, /, **path_params: str +): base = app.url_path_for(name, **path_params) - return base + '?' + urlencode(params) if params is not None else base - - + return base + "?" + urlencode(params) if params is not None else base -- cgit v1.3