Skip to content

Commit 3d9ebb6

Browse files
Fix coj parser
1 parent 71142c5 commit 3d9ebb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/parsers/coj.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ const coj = () => axios.all([getOngoingContests(), getUpcomingContests()])
3030
let contests = [];
3131
responses.forEach((response) => {
3232
const $ = cheerio.load(response.data);
33-
const contestRows = $('table').eq(1).find('tr').slice(1);
33+
const contestRows = $('table').eq(1).find('tr').slice(2);
3434

3535
contests = contests.concat(
36-
contestRows.map((i, contest) => {
37-
const details = $(this).children('td');
36+
contestRows.map((_, contest) => {
37+
const details = $(contest).children('td');
3838
const name = details.eq(2).find('a').text();
3939
const startTime = calcTimeUTC(details.eq(3).find('a').text().slice(17));
4040
const endTime = calcTimeUTC(details.eq(4).find('a').text().slice(17));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy