fix hl map history

This commit is contained in:
Robin Appelman 2025-04-11 20:03:29 +02:00
commit e2c2c7bdf3
4 changed files with 10074 additions and 4 deletions

View file

@ -162,10 +162,7 @@ impl Parser for MapHistoryParser {
)?; )?;
let date = parse_date(date)?; let date = parse_date(date)?;
let map = select_text(row, &self.selector_previous_map) let map = select_text(row, &self.selector_previous_map)
.ok_or(ParseError::ElementNotFound { .unwrap_or_default()
selector: SELECTOR_PREVIOUS_MAP,
role: "previous season map",
})?
.to_string(); .to_string();
season.maps.push(PreviousSeasonMap { week, date, map }) season.maps.push(PreviousSeasonMap { week, date, map })
} }

6966
tests/data/map_9v9_2.html Normal file

File diff suppressed because it is too large Load diff

View file

@ -101,6 +101,7 @@ fn test_parse_transaction_html(input: &str, name: &str) {
} }
#[test_case("map_9v9.html", "maps_9")] #[test_case("map_9v9.html", "maps_9")]
#[test_case("map_9v9_2.html", "maps_9_2")]
#[test_case("map_6v6.html", "maps_6")] #[test_case("map_6v6.html", "maps_6")]
#[test_case("map_4v4.html", "maps_4")] #[test_case("map_4v4.html", "maps_4")]
#[test_case("map_2v2.html", "maps_2")] #[test_case("map_2v2.html", "maps_2")]

File diff suppressed because it is too large Load diff