fix: correct indentation of view export loop inside dump function

This commit is contained in:
retoor 2024-11-24 06:38:33 +00:00
parent 7ec7ae8646
commit c59085db6a

View File

@ -70,7 +70,7 @@ def dump():
print(line)
print("```")
for view in db.get_views():
print(f"export/view-f{view['name']}.json")
with pathlib.Path(f"export/view-f{view['name']}.json").open("w+") as f:
json.dump(view, db.query(view['sql']))
for view in db.get_views():
print(f"export/view-f{view['name']}.json")
with pathlib.Path(f"export/view-f{view['name']}.json").open("w+") as f:
json.dump(view, db.query(view['sql']))