fix(encoding): utf8 encoding support
Some checks failed
Docker Image CI / build (push) Has been cancelled

Signed-off-by: paprykdev <58005447+paprykdev@users.noreply.github.com>
This commit is contained in:
patilk 2024-12-19 12:51:14 +01:00
parent 388964d497
commit 1e4449dccf
Signed by: s500042
GPG Key ID: 1921AD722E7392EE

View File

@ -110,8 +110,8 @@ class MonetScraper:
os.mkdir("dist") os.mkdir("dist")
except FileExistsError: except FileExistsError:
pass pass
open("dist/data.json", open("dist/data.json", "w", encoding="utf8").write(
"w").write(json.dumps([d for d in self.data], indent=4)) json.dumps([d for d in self.data], indent=4, ensure_ascii=False))
async def get_provenance(self): async def get_provenance(self):
provenances = None provenances = None