This commit is contained in:
Egor Svitin
2023-02-21 13:29:26 +03:00
parent 637fafff5e
commit 7a6d84dc20
3 changed files with 2 additions and 6 deletions

View File

@@ -51,7 +51,7 @@ class AppConfig:
new_config = {"sources": {}}
for source in r.json():
new_config["sources"][source["source_name"]] = source
print(dir(new_config))
with open("./configs/sources.json", "w") as outfile:
outfile.write(json.dumps(new_config))