From f62e6a58df14cf4fd343eacdc3449478d558df18 Mon Sep 17 00:00:00 2001 From: retoor Date: Sun, 24 Nov 2024 07:38:33 +0100 Subject: [PATCH] Added support for view exports --- src/drstats/dataset.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/drstats/dataset.py b/src/drstats/dataset.py index abb4192..638e04f 100644 --- a/src/drstats/dataset.py +++ b/src/drstats/dataset.py @@ -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'])) \ No newline at end of file + 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'])) \ No newline at end of file