mirror of https://github.com/JohnHammond/CTFd.git
Merge pull request #1381 from CTFd/fix-submission-type-pagination
* Fix `url_for` call for Admin Panel submission paginationfix-invalid-session-situation
commit
55d96b1c1d
|
@ -54,10 +54,16 @@ def submissions_listing(submission_type):
|
||||||
"admin/submissions.html",
|
"admin/submissions.html",
|
||||||
submissions=submissions,
|
submissions=submissions,
|
||||||
prev_page=url_for(
|
prev_page=url_for(
|
||||||
request.endpoint, type=submission_type, page=submissions.prev_num, **args
|
request.endpoint,
|
||||||
|
submission_type=submission_type,
|
||||||
|
page=submissions.prev_num,
|
||||||
|
**args
|
||||||
),
|
),
|
||||||
next_page=url_for(
|
next_page=url_for(
|
||||||
request.endpoint, type=submission_type, page=submissions.next_num, **args
|
request.endpoint,
|
||||||
|
submission_type=submission_type,
|
||||||
|
page=submissions.next_num,
|
||||||
|
**args
|
||||||
),
|
),
|
||||||
type=submission_type,
|
type=submission_type,
|
||||||
q=q,
|
q=q,
|
||||||
|
|
Loading…
Reference in New Issue