diff --git a/hbd/server/settings.py b/hbd/server/settings.py index ad6d265..68eb7c5 100644 --- a/hbd/server/settings.py +++ b/hbd/server/settings.py @@ -476,12 +476,7 @@ def get_settings_data(config: dict, threshold_checker=None) -> dict: sections = get_settings_sections(config, threshold_checker=threshold_checker) all_channel_names = sorted((config.get("notification_channels") or {}).keys()) all_usernames = sorted((config.get("users") or {}).keys()) - # Threshold config names come from the parsed section data already in sections. - tc_section = next((s for s in sections if s["id"] == "thresholds"), None) - all_threshold_configs = ( - [tc["name"] for tc in tc_section["threshold_configs"]] - if tc_section else [] - ) + all_threshold_configs = sorted((config.get("threshold_configs") or {}).keys()) return { "sections": sections, "all_channel_names": all_channel_names,