diff --git a/utils.py b/utils.py index 7fb2c93..2ad31a7 100644 --- a/utils.py +++ b/utils.py @@ -28,7 +28,7 @@ def get_datetime(day: str) -> datetime: day = int(day.split("/")[1]) # ensure that year rolls over if current month is December and the next month is less than 12. - if datetime.today().month == 12 & month < 12: + if datetime.today().month == 12 and month < 12: year += 1 return datetime(year, month, day)