mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: 放宽频率限制
This commit is contained in:
1 parent
213aa16c66
commit
4cf051c8d1
5 files changed
+7
-5
No files matched your search
@@ -348,7 +348,7 @@ export class ContestDetailProblemSubmitHandler extends ContestProblemHandler {
|
||||
if (this.domain.langs && !this.domain.langs.includes(lang)) {
|
||||
throw new BadRequestError('Language not allowed');
|
||||
}
|
||||
await this.limitRate('add_record', 60, 10);
|
||||
await this.limitRate('add_record', 60, system.get('limit.submission'));
|
||||
const rid = await record.add(domainId, pid, this.user._id, lang, code, true, pretest ? input : {
|
||||
type: document.TYPE_CONTEST,
|
||||
tid,
|
||||
|
||||
Reference in new issue
Block a user