mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core: fix homework create
This commit is contained in:
1 parent
08a8fc9c08
commit
d7b02baeaf
2 files changed
+2
-4
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.13.36",
|
||||
"version": "2.13.37",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "dist/loader.js",
|
||||
"typings": "dist/loader.d.ts",
|
||||
|
||||
@@ -211,9 +211,7 @@ const homework: ContestRule = {
|
||||
stat: (tdoc, journal) => {
|
||||
const effective = {};
|
||||
for (const j of journal) {
|
||||
if (tdoc.pids.includes(j.pid)
|
||||
&& !effective[j.pid]
|
||||
&& journal[j.pid].accept) {
|
||||
if (tdoc.pids.includes(j.pid) && !effective[j.pid] && j.accept) {
|
||||
effective[j.pid] = j;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user