Report which week a meeting occurs.
Change-Id: I1afcb7e657dd898279aa80c325a3adbfa5f40248
This commit is contained in:
parent
b413607a97
commit
4c4ae58575
@ -223,9 +223,6 @@ class MonthlyRecurrence(_Recurrence):
|
|||||||
'byday': '{}{}'.format(self._week, self._day[:2].upper()),
|
'byday': '{}{}'.format(self._week, self._day[:2].upper()),
|
||||||
}
|
}
|
||||||
|
|
||||||
def __str__(self):
|
|
||||||
return "Monthly"
|
|
||||||
|
|
||||||
_ORDINALS = [
|
_ORDINALS = [
|
||||||
'first',
|
'first',
|
||||||
'second',
|
'second',
|
||||||
@ -238,6 +235,10 @@ class MonthlyRecurrence(_Recurrence):
|
|||||||
def day_specifier(self):
|
def day_specifier(self):
|
||||||
return 'the {}'.format(self._ORDINALS[self._week - 1])
|
return 'the {}'.format(self._ORDINALS[self._week - 1])
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return "Monthly, in the " + format(
|
||||||
|
self._ORDINALS[self._week - 1]) + ' week,'
|
||||||
|
|
||||||
|
|
||||||
supported_recurrences = {
|
supported_recurrences = {
|
||||||
'weekly': WeeklyRecurrence(),
|
'weekly': WeeklyRecurrence(),
|
||||||
|
Loading…
Reference in New Issue
Block a user