fix: missing date

master
Pierre-Louis Guhur 10 months ago
parent 49c1432220
commit 808f889dc2

@ -501,7 +501,7 @@ def get_results(db: Session, election_ref: str) -> schemas.ResultsGet:
if (
db_election.hide_results
and (db_election.date_end > datetime.now())
and (db_election.date_end is not None and db_election.date_end > datetime.now())
and not db_election.force_close
):
raise errors.ForbiddenError("The election is not closed")

Loading…
Cancel
Save