File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ const coj = () => axios.all([getOngoingContests(), getUpcomingContests()])
30
30
let contests = [ ] ;
31
31
responses . forEach ( ( response ) => {
32
32
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 ) ;
34
34
35
35
contests = contests . concat (
36
- contestRows . map ( ( i , contest ) => {
37
- const details = $ ( this ) . children ( 'td' ) ;
36
+ contestRows . map ( ( _ , contest ) => {
37
+ const details = $ ( contest ) . children ( 'td' ) ;
38
38
const name = details . eq ( 2 ) . find ( 'a' ) . text ( ) ;
39
39
const startTime = calcTimeUTC ( details . eq ( 3 ) . find ( 'a' ) . text ( ) . slice ( 17 ) ) ;
40
40
const endTime = calcTimeUTC ( details . eq ( 4 ) . find ( 'a' ) . text ( ) . slice ( 17 ) ) ;
You can’t perform that action at this time.
0 commit comments