Skip to content

Commit

Permalink
sports: unescape team names
Browse files Browse the repository at this point in the history
  • Loading branch information
pbui committed Aug 30, 2024
1 parent 0506c2c commit 8916f93
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bobbit/modules/sports.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
import html
import re

# Metadata
Expand Down Expand Up @@ -39,8 +40,8 @@ def parse_games(text):
continue

yield {
'team_a': teams[0][0], 'score_a': int(teams[0][1]),
'team_b': teams[1][0], 'score_b': int(teams[1][1]),
'team_a': html.unescape(teams[0][0]), 'score_a': int(teams[0][1]),
'team_b': html.unescape(teams[1][0]), 'score_b': int(teams[1][1]),
'status': status[0]
}

Expand Down

0 comments on commit 8916f93

Please sign in to comment.