From 72e46bb93d48fae787f0e23b101cebfd4ab51d13 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Thu, 14 Mar 2024 17:15:50 +0300 Subject: Rename the_user -> _user. * gn_auth/auth/authentication/oauth2/models/oauth2client.py (client): Rename the_user -> _user. Signed-off-by: Munyoki Kilyungi --- gn_auth/auth/authentication/oauth2/models/oauth2client.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gn_auth/auth/authentication/oauth2/models/oauth2client.py b/gn_auth/auth/authentication/oauth2/models/oauth2client.py index 1ea7b06..98c3001 100644 --- a/gn_auth/auth/authentication/oauth2/models/oauth2client.py +++ b/gn_auth/auth/authentication/oauth2/models/oauth2client.py @@ -148,13 +148,13 @@ def client(conn: db.DbConnection, client_id: UUID, "SELECT * FROM oauth2_clients WHERE client_id=?", (str(client_id),)) result = cursor.fetchone() - the_user = user + _user = user if result: - if not bool(the_user): + if not bool(_user): try: - the_user = user_by_id(conn, result["user_id"]) + _user = user_by_id(conn, result["user_id"]) except NotFoundError: - the_user = None + _user = None return Just( OAuth2Client( @@ -167,7 +167,7 @@ def client(conn: db.DbConnection, client_id: UUID, result["client_secret_expires_at"] ), client_metadata=json.loads(result["client_metadata"]), - user=the_user) # type: ignore[arg-type] + user=_user) # type: ignore[arg-type] ) return Nothing -- cgit v1.2.3