mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
vjudge: cf: fix hidden contest 1769 and 1772
This commit is contained in:
1 parent
2f9a8b70bd
commit
b7a398db6f
1 file changed
+4
-1
@@ -353,7 +353,10 @@ export default class CodeforcesProvider implements IBasicProvider {
|
|||||||
if (index !== page.toString()) return [];
|
if (index !== page.toString()) return [];
|
||||||
}
|
}
|
||||||
if (listName === 'main') {
|
if (listName === 'main') {
|
||||||
return Array.from(document.querySelectorAll('.id>a')).map((i) => `P${i.innerHTML.trim()}`);
|
// 1769 is a hidden contest
|
||||||
|
return Array.from(document.querySelectorAll('.id>a'))
|
||||||
|
.map((i) => `P${i.innerHTML.trim()}`)
|
||||||
|
.filter((i) => !['P1772', 'P1769'].find((t) => i.startsWith(t)));
|
||||||
}
|
}
|
||||||
if (listName === 'gym') {
|
if (listName === 'gym') {
|
||||||
return Array.from(document.querySelectorAll('[data-contestId]')).map((i) => `LIST::GYM${i.getAttribute('data-contestId')}`);
|
return Array.from(document.querySelectorAll('[data-contestId]')).map((i) => `LIST::GYM${i.getAttribute('data-contestId')}`);
|
||||||
|
|||||||
Reference in new issue
Block a user