Skip to content

Commit

Permalink
Allow to submit party on its last day
Browse files Browse the repository at this point in the history
Not just starting on the day after the last day of the party.
  • Loading branch information
homeworkprod committed Oct 27, 2024
1 parent 86c7a59 commit 88a2c3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/check_party_date.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def load_party(path: Path) -> Party:

def select_parties_not_over(parties: Iterable[Party]) -> list[Party]:
today = date.today()
return list(filter(lambda party: party.end_on >= today, parties))
return list(filter(lambda party: party.end_on > today, parties))


def print_parties_not_in_past(parties: Iterable[Party]) -> None:
Expand Down

0 comments on commit 88a2c3a

Please sign in to comment.