From 444b0e141af56cb5bfe209b26485f172a7a1e43b Mon Sep 17 00:00:00 2001 From: Ashad-h Date: Thu, 30 May 2024 18:11:31 +0200 Subject: [PATCH 1/2] fix round history on overtime --- src/endpoints/getMatchMapStats.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/endpoints/getMatchMapStats.ts b/src/endpoints/getMatchMapStats.ts index debad79c..ab2d2718 100644 --- a/src/endpoints/getMatchMapStats.ts +++ b/src/endpoints/getMatchMapStats.ts @@ -215,12 +215,12 @@ function getRoundHistory( score: el.attr('title') }) - const team1Outcomes = $('.round-history-team-row') + const team1Outcomes = $('.round-history-team-row:nth-child(1)') .first() .find('.round-history-outcome') .toArray() .map(getOutcome) - const team2Outcomes = $('.round-history-team-row') + const team2Outcomes = $('.round-history-team-row:nth-child(2)') .last() .find('.round-history-outcome') .toArray() From 12902b3b57debb8a756f0a2cbd0e32c16cc32cbc Mon Sep 17 00:00:00 2001 From: Ashad-h Date: Thu, 30 May 2024 18:12:53 +0200 Subject: [PATCH 2/2] fix round history on overtime --- src/endpoints/getMatchMapStats.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/endpoints/getMatchMapStats.ts b/src/endpoints/getMatchMapStats.ts index ab2d2718..0dd19ba4 100644 --- a/src/endpoints/getMatchMapStats.ts +++ b/src/endpoints/getMatchMapStats.ts @@ -216,12 +216,10 @@ function getRoundHistory( }) const team1Outcomes = $('.round-history-team-row:nth-child(1)') - .first() .find('.round-history-outcome') .toArray() .map(getOutcome) const team2Outcomes = $('.round-history-team-row:nth-child(2)') - .last() .find('.round-history-outcome') .toArray() .map(getOutcome)