mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 10:14:11 +02:00
fix hl map history
This commit is contained in:
parent
c7adeef08e
commit
e2c2c7bdf3
4 changed files with 10074 additions and 4 deletions
|
|
@ -162,10 +162,7 @@ impl Parser for MapHistoryParser {
|
|||
)?;
|
||||
let date = parse_date(date)?;
|
||||
let map = select_text(row, &self.selector_previous_map)
|
||||
.ok_or(ParseError::ElementNotFound {
|
||||
selector: SELECTOR_PREVIOUS_MAP,
|
||||
role: "previous season map",
|
||||
})?
|
||||
.unwrap_or_default()
|
||||
.to_string();
|
||||
season.maps.push(PreviousSeasonMap { week, date, map })
|
||||
}
|
||||
|
|
|
|||
6966
tests/data/map_9v9_2.html
Normal file
6966
tests/data/map_9v9_2.html
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -101,6 +101,7 @@ fn test_parse_transaction_html(input: &str, name: &str) {
|
|||
}
|
||||
|
||||
#[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_4v4.html", "maps_4")]
|
||||
#[test_case("map_2v2.html", "maps_2")]
|
||||
|
|
|
|||
3106
tests/snapshots/snapshot__parse_maps_9_2_html.snap.new
Normal file
3106
tests/snapshots/snapshot__parse_maps_9_2_html.snap.new
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue