From 4c4ae58575efc1b7ac5cfd41f66f682f56f63958 Mon Sep 17 00:00:00 2001 From: rbowen Date: Tue, 6 Jul 2021 12:25:59 -0400 Subject: [PATCH] Report which week a meeting occurs. Change-Id: I1afcb7e657dd898279aa80c325a3adbfa5f40248 --- yaml2ical/recurrence.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/yaml2ical/recurrence.py b/yaml2ical/recurrence.py index 49a08d9..0e2ffcb 100644 --- a/yaml2ical/recurrence.py +++ b/yaml2ical/recurrence.py @@ -223,9 +223,6 @@ class MonthlyRecurrence(_Recurrence): 'byday': '{}{}'.format(self._week, self._day[:2].upper()), } - def __str__(self): - return "Monthly" - _ORDINALS = [ 'first', 'second', @@ -238,6 +235,10 @@ class MonthlyRecurrence(_Recurrence): def day_specifier(self): return 'the {}'.format(self._ORDINALS[self._week - 1]) + def __str__(self): + return "Monthly, in the " + format( + self._ORDINALS[self._week - 1]) + ' week,' + supported_recurrences = { 'weekly': WeeklyRecurrence(),