Skip to content

Commit 95c4a16

Browse files
committed
Add missing YEARLY mapping for recurrence
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent 108ca25 commit 95c4a16

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

RELEASE_NOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
## Summary
44

55
* The dispatch-cli application now features fancy colors and formatting!
6+
7+
## Bug Fixes
8+
9+
* Fixed a bug where the dispatch-cli application would crash when reading a Dispatch with frequency YEARLY

src/frequenz/client/dispatch/recurrence.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class Frequency(IntEnum):
4848
Frequency.DAILY: rrule.DAILY,
4949
Frequency.WEEKLY: rrule.WEEKLY,
5050
Frequency.MONTHLY: rrule.MONTHLY,
51+
Frequency.YEARLY: rrule.YEARLY,
5152
}
5253
"""To map from our Frequency enum to the dateutil library enum."""
5354

0 commit comments

Comments
 (0)