From 67676dda8dfbb66ce673dfe1afa9671b92a9e56d Mon Sep 17 00:00:00 2001 From: Nate Smith Date: Sat, 9 Dec 2023 15:58:40 -0800 Subject: [PATCH] fore --- main.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index 97bc43a..bb71d19 100755 --- a/main.py +++ b/main.py @@ -60,7 +60,6 @@ def mkdb(p: str, sql: str) -> Optional[Exception]: return Exception(f"failed to initialize {p}: {e}") return None - def setup() -> Optional[Exception]: bdir = path.expanduser(path.join("~", BOTANY_DIR)) e = mkdir(bdir) @@ -72,14 +71,11 @@ def setup() -> Optional[Exception]: if e is not None: return e - plotdb_path = path.join(bdir, "db/plot.db") - # TODO test manually to see what kind of permissions fuckery we need - e = mkdb(plotdb_path, PLOT_SCHEMA) + e = mkdb(path.join(bdir, "db/plot.db"), PLOT_SCHEMA) if e is not None: return e - visitordb_path = path.join(bdir, "db/visitors.db") - e = mkdb(visitordb_path, VISITORS_SCHEMA) + e = mkdb(path.join(bdir, "db/visitors.db"), VISITORS_SCHEMA) if e is not None: return e