From ef9390eaf82d183b6c2796f6080d1579af71b9e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Sat, 9 Dec 2023 17:48:05 +0100 Subject: [PATCH] fix: port syntax --- tutorcredentials/plugin.py | 1 - .../credentials/apps/credentials/settings/development.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tutorcredentials/plugin.py b/tutorcredentials/plugin.py index 1c6ff38..9eef065 100644 --- a/tutorcredentials/plugin.py +++ b/tutorcredentials/plugin.py @@ -71,7 +71,6 @@ def _add_learner_record_mfe(apps: dict[str, MFE_ATTRS_TYPE]) -> dict[str, MFE_AT { "learner-record": { "repository": "https://github.com/openedx/frontend-app-learner-record", - "refs": get_github_refs_path("openedx/frontend-app-learner-record"), "port": 1990, }, } diff --git a/tutorcredentials/templates/credentials/apps/credentials/settings/development.py b/tutorcredentials/templates/credentials/apps/credentials/settings/development.py index 3e1932a..24a8753 100644 --- a/tutorcredentials/templates/credentials/apps/credentials/settings/development.py +++ b/tutorcredentials/templates/credentials/apps/credentials/settings/development.py @@ -5,11 +5,11 @@ from credentials.settings.devstack import * # pylint: disable=wildcard-import, u FAVICON_URL = "http://{{ LMS_HOST }}:8000/favicon.ico" CORS_ORIGIN_WHITELIST = list(CORS_ORIGIN_WHITELIST) + [ - "http://{{ MFE_HOST }}:{{ get_mfe('learner-record')["port"] }}", + "http://{{ MFE_HOST }}:{{ get_mfe('learner-record')['port'] }}", ] -CSRF_TRUSTED_ORIGINS = ["http://{{ MFE_HOST }}:{{ get_mfe('learner-record')["port"] }}"] +CSRF_TRUSTED_ORIGINS = ["http://{{ MFE_HOST }}:{{ get_mfe('learner-record')['port'] }}"] -LEARNER_RECORD_MFE_RECORDS_PAGE_URL = "http://{{ MFE_HOST }}:{{ get_mfe('learner-record')["port"] }}/learner-record/" +LEARNER_RECORD_MFE_RECORDS_PAGE_URL = "http://{{ MFE_HOST }}:{{ get_mfe('learner-record')['port'] }}/learner-record/" SOCIAL_AUTH_EDX_OAUTH2_PUBLIC_URL_ROOT = "http://{{ LMS_HOST }}:8000" SOCIAL_AUTH_EDX_OAUTH2_KEY = "{{ CREDENTIALS_OAUTH2_KEY_SSO_DEV }}"