From 2a91274d7f85c823654a7b0c352fb85079236a40 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Thu, 21 Dec 2023 19:22:48 -0500 Subject: [PATCH] Need to use the and keyword. --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)