We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d24d296 commit 5a3b75bCopy full SHA for 5a3b75b
app/crud.py
@@ -368,7 +368,7 @@ def update_election(
368
update_grades(db, election.grades, db_election.grades)
369
370
# Check if start_date is being changed
371
- if election.date_start is not None and str(db_election.date_start) != election.date_start:
+ if election.date_start is not None and schemas.parse_date(db_election.date_start) != schemas.parse_date(election.date_start):
372
# If so, check if any votes have been cast
373
num_votes_cast = db.query(models.Vote).filter(
374
models.Vote.election_ref == election_ref,
0 commit comments