Skip to content

Commit 9ffd823

Browse files
committed
minor logic tweak
1 parent 335cb22 commit 9ffd823

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/elections/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ async def delete_election(
330330
await db_session.commit()
331331

332332
old_election = await elections.crud.get_election(db_session, slugified_name)
333-
return JSONResponse({"success": old_election is not None})
333+
return JSONResponse({"success": old_election is None})
334334

335335
# registration ------------------------------------------------------------- #
336336

0 commit comments

Comments
 (0)