Skip to content

Commit 3debbba

Browse files
committed
Merge branch 'main' of github.com:elekto-io/elekto
2 parents a5e9529 + 6533cb3 commit 3debbba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

elekto/controllers/elections.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,16 +233,16 @@ def elections_exception(eid):
233233
req = (
234234
SESSION.query(Request)
235235
.join(Request, Election.requests)
236-
.filter(Request.user_id == F.g.user.id)
236+
.filter(Request.user_id == F.g.user.id, Election.key == eid)
237237
.first()
238238
)
239239

240240
if req:
241241
return F.render_template(
242242
"errors/message.html",
243-
title="You have already filled the form.",
244-
message="please wait for the election's\
245-
supervisor to view your request.",
243+
title="You have already requested an exception.",
244+
message="You have already requested an exception for this election;\
245+
Please wait for the admin to review your request.",
246246
)
247247

248248
if F.request.method == "POST":

0 commit comments

Comments
 (0)