Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pandadtdyy authored Mar 29, 2024
1 parent da21193 commit 44c2a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export default class LuoguProvider extends BasicFetcher implements IBasicProvide
if (judge.status < 2) continue;
logger.info('RecordID:', id, 'done');
// TODO return real score
const status = Math.min(...Object.values(subtasks).map((i) => i.status));
const status = Math.max(...Object.values(subtasks).map((i) => i.status));
return await end({
status,
score: status === STATUS.STATUS_ACCEPTED ? 100 : judge.score,
Expand Down

0 comments on commit 44c2a7d

Please sign in to comment.