mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-28 04:06:21 +00:00
fix: 5a2935b45b
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5a2935b45b
commit
f1db47df38
@ -269,9 +269,7 @@ export default class QOJProvider extends UOJProvider implements IBasicProvider {
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
const statusText = summary.children[3]?.children[0]?.innerHTML;
|
const statusText = summary.children[3]?.children[0]?.innerHTML;
|
||||||
const statusMatch = /[A-Z]+/.exec(statusText);
|
const score = statusText.includes('✓')
|
||||||
const score =
|
|
||||||
statusMatch && statusMatch[0] === 'AC'
|
|
||||||
? 100
|
? 100
|
||||||
: parseInt(statusText || '') || 0;
|
: parseInt(statusText || '') || 0;
|
||||||
const status = score === 100 ? 'Accepted' : 'Unaccepted';
|
const status = score === 100 ? 'Accepted' : 'Unaccepted';
|
||||||
|
Loading…
Reference in New Issue
Block a user