core: fix limit.pretest

This commit is contained in:
undefined committed 2024-11-10 14:55:46 +08:00
1 parent 4d8c2c019c
commit 35244e8103
1 file changed
+1 -1
+1 -1
View File
@@ -491,7 +491,7 @@ export class ProblemSubmitHandler extends ProblemDetailHandler {
}
}
await this.limitRate('add_record', 60, system.get('limit.submission_user'), '{{user}}');
await this.limitRate('add_record', 60, system.get('limit.submission'));
await this.limitRate('add_record', 60, pretest ? system.get('limit.pretest') : system.get('limit.submission'));
const files: Record<string, string> = {};
const lengthLimit = system.get('limit.codelength') || 128 * 1024;
if (!code) {