aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gn_auth/auth/authentication/oauth2/models/oauth2client.py10
1 files 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