Skip to content

Commit

Permalink
fix best_of type and deal with 'N maps'
Browse files Browse the repository at this point in the history
  • Loading branch information
miztch committed Jun 6, 2023
1 parent d35886a commit 530d873
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion functions/sasha/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ def scrape_match(match_url_path):
teams = [t.text().replace('\t', '').replace('\n', '') for t in teams]

best_of = html.css('.match-header-vs-note')[-1].text()
best_of = best_of.replace('Bo', '').replace('\t', '').replace('\n', '')
best_of = best_of.replace('Bo', '').replace(' Maps', '')
best_of = best_of.replace('\t', '').replace('\n', '')
best_of = int(best_of)

event_url_path = html.css_first('a.match-header-event').attributes['href']

Expand Down

0 comments on commit 530d873

Please sign in to comment.