mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core: bug fix
This commit is contained in:
1 parent
f9c0437d16
commit
1c97853fc1
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "3.1.25",
|
||||
"version": "3.1.26",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/loader",
|
||||
"module": "src/loader",
|
||||
|
||||
@@ -220,7 +220,7 @@ export class ContestEditHandler extends Handler {
|
||||
@param('duration', Types.Float)
|
||||
@param('title', Types.Title)
|
||||
@param('content', Types.Content)
|
||||
@param('rule', Types.Range(Object.assign(contest.RULES).filter((i) => i !== 'homework')))
|
||||
@param('rule', Types.Range(Object.keys(contest.RULES).filter((i) => i !== 'homework')))
|
||||
@param('pids', Types.Content)
|
||||
@param('rated', Types.Boolean)
|
||||
@param('code', Types.String, true)
|
||||
|
||||
Reference in new issue
Block a user