summaryrefslogtreecommitdiff
path: root/model/database.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-05-01 13:19:05 +0200
committerxengineering <me@xengineering.eu>2024-05-01 13:19:05 +0200
commit4cc0677b79edeed05ead23def152ac45f35f556d (patch)
treef7be89d40f09cb2427f3f7607a03d46ed1bacc7d /model/database.go
parentf9117c3740a134ce544f5a70bcf5b5da06d976da (diff)
downloadceres-4cc0677b79edeed05ead23def152ac45f35f556d.tar
ceres-4cc0677b79edeed05ead23def152ac45f35f556d.tar.zst
ceres-4cc0677b79edeed05ead23def152ac45f35f556d.zip
Use default storage path instead of temp dir
Diffstat (limited to 'model/database.go')
-rw-r--r--model/database.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/database.go b/model/database.go
index 3d8a0c4..36190ff 100644
--- a/model/database.go
+++ b/model/database.go
@@ -23,7 +23,7 @@ func GetSql(code string) (string, error) {
return string(query), nil
}
-func InitDatabase() {
+func InitDatabase(storage string) {
var err error
fn := filepath.Join(storage, "ceres.sqlite3")