aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authentication/oauth2/server.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-05-13 06:33:51 +0300
committerFrederick Muriuki Muriithi2024-05-13 06:33:51 +0300
commit2a25cce03405d23a19f984586aab3dd341912fd5 (patch)
tree7efc066acaa8ca61bf6379a2a3c4b2afec24bd3c /gn_auth/auth/authentication/oauth2/server.py
parenta22dbcba7b28b75c13aa25bdd36583ade5fe3747 (diff)
downloadgn-auth-2a25cce03405d23a19f984586aab3dd341912fd5.tar.gz
Fix myriad of linting error
These linting errors can't be rebased into the newer commits.
Diffstat (limited to 'gn_auth/auth/authentication/oauth2/server.py')
-rw-r--r--gn_auth/auth/authentication/oauth2/server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn_auth/auth/authentication/oauth2/server.py b/gn_auth/auth/authentication/oauth2/server.py
index 75d6e1b..d845c60 100644
--- a/gn_auth/auth/authentication/oauth2/server.py
+++ b/gn_auth/auth/authentication/oauth2/server.py
@@ -11,7 +11,7 @@ from authlib.integrations.flask_oauth2 import AuthorizationServer
from gn_auth.auth.db import sqlite3 as db
-from .models.oauth2client import client
+from .models.oauth2client import client as fetch_client
from .models.oauth2token import OAuth2Token, save_token
from .models.jwtrefreshtoken import (
JWTRefreshToken,
@@ -36,7 +36,7 @@ def create_query_client_func() -> Callable:
# use current_app rather than passing the db_uri to avoid issues
# when config changes, e.g. while testing.
with db.connection(current_app.config["AUTH_DB"]) as conn:
- _client = client(conn, client_id).maybe(
+ _client = fetch_client(conn, client_id).maybe(
None, lambda clt: clt) # type: ignore[misc]
if bool(_client):
return _client