Skip to content

Commit d9a548b

Browse files
committed
scripts: Fix standings extract script
1 parent e3ff912 commit d9a548b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/extract_standings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ def add_css(element: bs4.element.Tag):
1919

2020
# hack to edit .sticky-heading's 'top' attribute to 0.
2121
sticky_start = css_content.find('.sticky-heading')
22-
print(sticky_start, file=sys.stderr)
2322
if sticky_start >= 0:
2423
match = re.compile(r"top:\s*[^;]+;").search(css_content, pos=sticky_start)
2524
css_content = css_content[:match.start()] + "top: 0;" + css_content[match.end():]
@@ -45,7 +44,7 @@ def main():
4544
main = html.select('#root > div > div.container')[0]
4645

4746
# Find the teams list container. See StandingsTable.tsx for the structure.
48-
teamsContainer = main.select('.standard-standings .standings-section')[-1].find('div')
47+
teamsContainer = main.select('.standard-standings .standings-section')[-2].find('div')
4948

5049
# Each team row has data-key attribute. Extract them and clear the list.
5150
teams = teamsContainer.select('div[data-key]')

0 commit comments

Comments
 (0)