diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d8f40227..afedbbcc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,13 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang +## [1.20.1] - 2024-07-26 + +### Fixed + +- `INCIDENT_LEVEL_CHOICES` was behaving oddly when debugging so it has been + made a proper immutable constant. + ## [1.20.0] - 2024-07-25 diff --git a/src/argus/incident/constants.py b/src/argus/incident/constants.py index e8d3f3238..c9ca7069d 100644 --- a/src/argus/incident/constants.py +++ b/src/argus/incident/constants.py @@ -4,4 +4,4 @@ MIN_INCIDENT_LEVEL = 1 # Do not override MAX_INCIDENT_LEVEL = 5 INCIDENT_LEVELS = tuple(range(MIN_INCIDENT_LEVEL, MAX_INCIDENT_LEVEL + 1)) -INCIDENT_LEVEL_CHOICES = zip(INCIDENT_LEVELS, map(str, INCIDENT_LEVELS)) +INCIDENT_LEVEL_CHOICES = tuple(zip(INCIDENT_LEVELS, map(str, INCIDENT_LEVELS)))