homework: update effective check

This commit is contained in:
undefined committed 2021-09-08 17:03:47 +08:00
1 parent 408b859a3e
commit 1fa3bdddd1
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -292,7 +292,7 @@ const homework: ContestRule = {
stat: (tdoc, journal) => {
const effective = {};
for (const j of journal) {
if (tdoc.pids.includes(j.pid) && (!effective[j.pid] || j.status === STATUS.STATUS_ACCEPTED)) {
if (tdoc.pids.includes(j.pid)) {
effective[j.pid] = j;
}
}