Skip to content

Commit da602f9

Browse files
committed
chore: set NAU_SEND_COURSE_CERTIFICATE_CONFIG setting from env
1 parent 970630c commit da602f9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

nau_openedx_extensions/coursecertificate/management/commands/send_certificates_by_web_service.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@
1515

1616
class Command(BaseCommand):
1717
"""
18-
Send course certificates to external services based on YAML configuration.
18+
Send course certificates to external services based on the
19+
Djando setting `NAU_SEND_COURSE_CERTIFICATE_CONFIG`.
1920
"""
2021

21-
help = "Send course certificates to external services"
22+
help = """
23+
Send course certificates to external services configured
24+
in the Djando setting `NAU_SEND_COURSE_CERTIFICATE_CONFIG`.
25+
"""
2226

2327
CONFIG_KEY = "NAU_SEND_COURSE_CERTIFICATE_CONFIG"
2428

nau_openedx_extensions/settings/production.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,4 @@ def plugin_settings(settings):
105105
settings.CCX_MAX_STUDENTS_ALLOWED = getattr(settings, "ENV_TOKENS", {}).get(
106106
"CCX_MAX_STUDENTS_ALLOWED", 200
107107
)
108+
settings.NAU_SEND_COURSE_CERTIFICATE_CONFIG = getattr(settings, "ENV_TOKENS", {}).get("NAU_SEND_COURSE_CERTIFICATE_CONFIG", [])

0 commit comments

Comments
 (0)