Skip to content

Commit 32ff440

Browse files
chore(k8s): config reg participants API key/url (ietf-tools#9054)
* chore(k8s): config reg participants API key/url * fix: typo
1 parent 5ede134 commit 32ff440

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

k8s/settings_local.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,21 @@ def _multiline_to_list(s):
165165
raise RuntimeError("DATATRACKER_REGISTRATION_API_KEY must be set")
166166
STATS_REGISTRATION_ATTENDEES_JSON_URL = f"https://registration.ietf.org/{{number}}/attendees/?apikey={_registration_api_key}"
167167

168+
# Registration Participants API config - key must be set, but the URL can be left
169+
# to the default in settings.py
170+
_registration_participants_api_key = os.environ.get(
171+
"DATATRACKER_REGISTRATION_PARTICIPANTS_API_KEY", None
172+
)
173+
if _registration_participants_api_key is None:
174+
raise RuntimeError("DATATRACKER_REGISTRATION_PARTICIPANTS_API_KEY must be set")
175+
REGISTRATION_PARTICIPANTS_API_KEY = _registration_participants_api_key
176+
177+
_registration_participants_api_url = os.environ.get(
178+
"DATATRACKER_REGISTRATION_PARTICIPANTS_API_URL", None
179+
)
180+
if _registration_participants_api_url is not None:
181+
REGISTRATION_PARTICIPANTS_API_URL = _registration_participants_api_url
182+
168183
# FIRST_CUTOFF_DAYS = 12
169184
# SECOND_CUTOFF_DAYS = 12
170185
# SUBMISSION_CUTOFF_DAYS = 26

0 commit comments

Comments
 (0)