File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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" :
You can’t perform that action at this time.
0 commit comments