Skip to content

Commit

Permalink
handle nbsp on NVC page
Browse files Browse the repository at this point in the history
  • Loading branch information
underyx authored Jun 17, 2024
1 parent 98df884 commit 224c4e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/nvc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

for timeframe_name, pattern in PATTERNS.items():
timeframe_data = data[timeframe_name]
match = pattern.search(r.text)
match = pattern.search(r.text.replace("\xa0", " "))
if not match:
continue
as_of_date = arrow.get(match.group("as_of_date"), DATE_FORMATS)
Expand Down

0 comments on commit 224c4e1

Please sign in to comment.