From 4fa859f737735599da784eb28bbedf93805eb63b Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 23 Feb 2024 12:04:40 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20writing=20json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/retro.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/retro.py b/commands/retro.py index 74fa8ab..8c3b571 100644 --- a/commands/retro.py +++ b/commands/retro.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 from argparse import ArgumentParser -from json import load +from json import load, dump from pathlib import Path from subprocess import run @@ -66,4 +66,4 @@ for console in path.iterdir(): # write json with open(metafile, "w") as file: - file.write(metas) + dump(metas, file)