simlist/pyluach

Shavuos in Elul?

Ishayahu opened this issue · 3 comments

today

HebrewDate(5782, 5, 27)

(today+10)

HebrewDate(5782, 6, 7)

(today+10).month_name()

'Elul'

(today+10).holiday()

'Shavuos'

your error is in utils.py at line 256:
elif month == 3 and day == 6 or (not israel and day == 7)
for month=6 and day=7 it results in
False and False or True == True
it should be
elif month == 3 and (day == 6 or (not israel and day == 7))
then it will be
False and (False or True) = False and True = False

Thank you! I'll try to have a fix out asap.

Fixed in v2.0.1. Thanks again.