fix: 5a2935b45b
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-03-19 22:11:16 +08:00
parent 5a2935b45b
commit f1db47df38
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -269,11 +269,9 @@ export default class QOJProvider extends UOJProvider implements IBasicProvider {
continue;
const statusText = summary.children[3]?.children[0]?.innerHTML;
const statusMatch = /[A-Z]+/.exec(statusText);
const score =
statusMatch && statusMatch[0] === 'AC'
? 100
: parseInt(statusText || '') || 0;
const score = statusText.includes('✓')
? 100
: parseInt(statusText || '') || 0;
const status = score === 100 ? 'Accepted' : 'Unaccepted';
return await end({