Skip to content

Commit 44c2a7d

Browse files
authored
fix bug
1 parent da21193 commit 44c2a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export default class LuoguProvider extends BasicFetcher implements IBasicProvide
187187
if (judge.status < 2) continue;
188188
logger.info('RecordID:', id, 'done');
189189
// TODO return real score
190-
const status = Math.min(...Object.values(subtasks).map((i) => i.status));
190+
const status = Math.max(...Object.values(subtasks).map((i) => i.status));
191191
return await end({
192192
status,
193193
score: status === STATUS.STATUS_ACCEPTED ? 100 : judge.score,

0 commit comments

Comments
 (0)