Skip to content

Commit

Permalink
Last "sum" row removed from race overview stages table
Browse files Browse the repository at this point in the history
  • Loading branch information
themm1 committed Jun 4, 2024
1 parent aaec0cc commit 57b8391
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions procyclingstats/race_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ def stages(self, *args: str) -> List[Dict[str, Any]]:
if not_p_icon:
stage_e.remove()

# removes last row from stages table
for row in stages_table_html.css("tr.sum"):
row.remove()
table_parser = TableParser(stages_table_html)
casual_f_to_parse = [f for f in fields if f != "date"]
table_parser.parse(casual_f_to_parse)
Expand Down

0 comments on commit 57b8391

Please sign in to comment.