mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +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)
|
||||
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 = {};
|
||||
|
||||
Reference in new issue
Block a user