fix: un-break json dump

pull/170/head
Raphaël Vinot 2021-02-10 16:13:11 +01:00
parent a4974f4e9f
commit b09aec5b84
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ def ua_parser(html_content: str) -> Dict[str, Any]:
return {}
to_store: Dict[str, Any] = {'by_frequency': []}
for ua in json.loads(uas):
for ua in json.loads(uas.replace('\n', '')):
os = ua['system'].split(' ')[-1]
if os not in to_store:
to_store[os] = {}