Skip to content

Commit

Permalink
Update shared.py (#25)
Browse files Browse the repository at this point in the history
Fix encoding for player_name_fixes.json and  team_tri_codes.json in shared.py
  • Loading branch information
903124 committed May 6, 2021
1 parent b8c4acc commit 9549606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hockey_scraper/utils/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
FILE_DIR = os.path.dirname(os.path.realpath(__file__))

# Name and Team fixes used
with open(os.path.join(FILE_DIR, "player_name_fixes.json"), "r") as f:
with open(os.path.join(FILE_DIR, "player_name_fixes.json"), "r" ,encoding="utf-8") as f:
Names = json.load(f)['fixes']

with open(os.path.join(FILE_DIR, "team_tri_codes.json"), "r") as f:
with open(os.path.join(FILE_DIR, "team_tri_codes.json"), "r" ,encoding="utf-8") as f:
TEAMS = json.load(f)['teams']


Expand Down

0 comments on commit 9549606

Please sign in to comment.