Skip to content

Commit

Permalink
Fix big with incorrect year being allocated for new year collections …
Browse files Browse the repository at this point in the history
…due to missing else clause.
  • Loading branch information
Kronoc123 authored and 5ila5 committed Dec 30, 2024
1 parent 755be32 commit c61f2a5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ def parse_waste_pickup_dates(
year=datetime.now().year + 1
).date()

pickup_date = pickup_datetime.replace(year=datetime.now().year).date()
else:
pickup_date = pickup_datetime.replace(
year=datetime.now().year
).date()

for bin_type in bin_types:
entries.append(
Expand Down

0 comments on commit c61f2a5

Please sign in to comment.