Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 14, 2024
1 parent ac798ba commit f4708aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
9 changes: 1 addition & 8 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,6 @@
"hashed_secret": "b235838f76594bf21886c6eec9c06a207e9ec5ce",
"is_verified": false,
"line_number": 35
},
{
"type": "Secret Keyword",
"filename": "pytest.ini",
"hashed_secret": "e035cdf1f57666859ec5949ee389d479d03ea1e3",
"is_verified": false,
"line_number": 36
}
],
"sheets/dev-setup.md": [
Expand Down Expand Up @@ -284,5 +277,5 @@
}
]
},
"generated_at": "2024-04-30T20:24:02Z"
"generated_at": "2024-05-14T06:08:20Z"
}
8 changes: 2 additions & 6 deletions courseware/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,7 @@ def get_existing_openedx_user(user):
raise ImproperlyConfigured("OPENEDX_SERVICE_WORKER_API_TOKEN is not set") # noqa: EM101
req_session = requests.Session()
req_session.headers.update(
{
AUTH_TOKEN_HEADER_NAME: f"Bearer {settings.OPENEDX_SERVICE_WORKER_API_TOKEN}"
}
{AUTH_TOKEN_HEADER_NAME: f"Bearer {settings.OPENEDX_SERVICE_WORKER_API_TOKEN}"}
)
response = req_session.get(
edx_url(f"{OPENEDX_USER_ACCOUNT_DETAIL_PATH}"), params={"email": user.email}
Expand Down Expand Up @@ -533,9 +531,7 @@ def get_edx_api_service_client():

print("get_edx_api_service_client=========================================")
return EdxApi(
{
"access_token": "FHSMIx7nLc9lVfSxKAvjiSkfVYNLK7_STAFF"
},
{"access_token": "FHSMIx7nLc9lVfSxKAvjiSkfVYNLK7_STAFF"},
settings.OPENEDX_API_BASE_URL,
timeout=settings.EDX_API_CLIENT_TIMEOUT,
)
Expand Down

0 comments on commit f4708aa

Please sign in to comment.