From c5fd5ac4e1048889f45aa61ee9603c684c2ea909 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 8 Aug 2024 15:30:42 -0500 Subject: Fix linting issues. --- uploader/oauth2/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'uploader/oauth2') diff --git a/uploader/oauth2/client.py b/uploader/oauth2/client.py index 6dde9cb..a3e4ba3 100644 --- a/uploader/oauth2/client.py +++ b/uploader/oauth2/client.py @@ -88,14 +88,14 @@ def oauth2_client(): """Update the token when refreshed.""" session.set_user_token(token) - def __json_auth__(client, method, uri, headers, body): + def __json_auth__(client, _method, uri, headers, body): return ( uri, {**headers, "Content-Type": "application/json"}, json.dumps({ **dict(url_decode(body)), - "client_id": oauth2_clientid(), - "client_secret": oauth2_clientsecret() + "client_id": client.client_id, + "client_secret": client.client_secret })) def __client__(token) -> OAuth2Session: -- cgit v1.2.3