mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: problem_list: use new pagination api
This commit is contained in:
1 file changed
+1
-1
@@ -137,7 +137,7 @@ export class ProblemMainHandler extends Handler {
|
|||||||
@param('pjax', Types.Boolean)
|
@param('pjax', Types.Boolean)
|
||||||
async get(domainId: string, page = 1, q = '', limit: number, pjax = false) {
|
async get(domainId: string, page = 1, q = '', limit: number, pjax = false) {
|
||||||
this.response.template = 'problem_main.html';
|
this.response.template = 'problem_main.html';
|
||||||
if (!limit || limit > system.get('pagination.problem') || page > 1) limit = system.get('pagination.problem');
|
if (!limit || limit > this.ctx.setting.get('pagination.problem') || page > 1) limit = this.ctx.setting.get('pagination.problem');
|
||||||
// eslint-disable-next-line @typescript-eslint/no-shadow
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
||||||
const query = buildQuery(this.user);
|
const query = buildQuery(this.user);
|
||||||
const psdict = {};
|
const psdict = {};
|
||||||
|
|||||||
Reference in new issue
Block a user