Need to use the and keyword.

This commit is contained in:
2023-12-21 19:22:48 -05:00
parent 4fb4927fb8
commit 2a91274d7f
+1 -1
View File
@@ -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)