diff --git a/backend/bookie_backend/data/database.py b/backend/bookie_backend/data/database.py index dce9a1a..437eafd 100644 --- a/backend/bookie_backend/data/database.py +++ b/backend/bookie_backend/data/database.py @@ -7,6 +7,8 @@ home = os.environ["HOME"] path = Path(f"{home}/.local/share/bookie/bookie.sqlite") +if not path.exists(): + path.touch() SQLITE_DB_URL = f"sqlite:///{path}" engine = create_engine(SQLITE_DB_URL, connect_args={"check_same_thread": False})