core: contest_scoreboard: disable pagination

This commit is contained in:
undefined committed 2022-09-26 23:59:33 +08:00
1 parent 757b5e6bc1
commit 9461499d7c
6 files changed
+32 -35

No files matched your search

+3 -3
View File
@@ -514,9 +514,9 @@ export interface ContestRule<T = any> {
) => Promise<ScoreboardRow>;
scoreboard: (
this: ContestRule<T>, isExport: boolean, _: (s: string) => string,
tdoc: Tdoc<30>, pdict: ProblemDict, cursor: Cursor<ContestStat & T>, page: number,
) => Promise<[board: ScoreboardRow[], udict: Udict, nPages: number]>;
ranked: (tdoc: Tdoc<30>, cursor: Cursor<ContestStat & T>) => Promise<[Array<[number, ContestStat & T]>, number]>;
tdoc: Tdoc<30>, pdict: ProblemDict, cursor: Cursor<ContestStat & T>,
) => Promise<[board: ScoreboardRow[], udict: Udict]>;
ranked: (tdoc: Tdoc<30>, cursor: Cursor<ContestStat & T>) => Promise<[number, ContestStat & T][]>;
}
export type ContestRules = Dictionary<ContestRule>;