From 75c1270c86ac17d056161714ac32a57113696d21 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 7 May 2024 21:25:19 +0200 Subject: model: Init database with database path --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index bc8e75a..b887981 100644 --- a/main.go +++ b/main.go @@ -7,6 +7,7 @@ import ( "os" "os/signal" "syscall" + "path/filepath" "xengineering.eu/ceres/model" "xengineering.eu/ceres/view" @@ -33,7 +34,7 @@ func main() { } log.Printf("Storage directory: %s\n", storage.Path) - model.InitDatabase(config.StorageFilePath) + model.InitDatabase(filepath.Join(storage.Path, "ceres.sqlite3")) defer model.CloseDatabase() model.InjectTestRecipes() -- cgit v1.2.3-70-g09d2