From 95c4a1652ed09e13c72297f6dd3ba68e444a5d97 Mon Sep 17 00:00:00 2001 From: "Mathias L. Baumann" Date: Mon, 2 Dec 2024 11:59:58 +0100 Subject: [PATCH] Add missing YEARLY mapping for recurrence Signed-off-by: Mathias L. Baumann --- RELEASE_NOTES.md | 4 ++++ src/frequenz/client/dispatch/recurrence.py | 1 + 2 files changed, 5 insertions(+) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 2eb20397..7d4f9274 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -3,3 +3,7 @@ ## Summary * The dispatch-cli application now features fancy colors and formatting! + +## Bug Fixes + +* Fixed a bug where the dispatch-cli application would crash when reading a Dispatch with frequency YEARLY diff --git a/src/frequenz/client/dispatch/recurrence.py b/src/frequenz/client/dispatch/recurrence.py index 8460669a..2df69a46 100644 --- a/src/frequenz/client/dispatch/recurrence.py +++ b/src/frequenz/client/dispatch/recurrence.py @@ -48,6 +48,7 @@ class Frequency(IntEnum): Frequency.DAILY: rrule.DAILY, Frequency.WEEKLY: rrule.WEEKLY, Frequency.MONTHLY: rrule.MONTHLY, + Frequency.YEARLY: rrule.YEARLY, } """To map from our Frequency enum to the dateutil library enum."""