changed ordinals from a set to a tuple

This commit is contained in:
ErnieWhite
2022-04-13 19:27:26 -05:00
committed by BethanyG
parent 2a3dda0b82
commit 5b211b6944

View File

@@ -14,7 +14,7 @@ def _choice(week):
return lambda dates: next(date for date in dates if return lambda dates: next(date for date in dates if
13 <= date.day <= 19) 13 <= date.day <= 19)
ordinals = {'first', 'second', 'third', 'fourth', 'fifth', 'sixth'} ordinals = ('first', 'second', 'third', 'fourth', 'fifth', 'sixth')
day = -1 if (week == 'last') else (ordinals.index(week)) day = -1 if (week == 'last') else (ordinals.index(week))
def _func(dates): def _func(dates):