core: problem_list: use new pagination api

This commit is contained in:
undefined committed 2024-01-28 09:58:49 +08:00
1 parent 03285b4b52
commit a0f3ee0328
1 file changed
+1 -1
+1 -1
View File
@@ -137,7 +137,7 @@ export class ProblemMainHandler extends Handler {
@param('pjax', Types.Boolean)
async get(domainId: string, page = 1, q = '', limit: number, pjax = false) {
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
const query = buildQuery(this.user);
const psdict = {};