about summary refs log tree commit diff
path: root/src/db.go
diff options
context:
space:
mode:
authorEmile <git@emile.space>2024-08-16 22:08:39 +0200
committerEmile <git@emile.space>2024-08-16 22:08:39 +0200
commit294659add1082f4a2333871f2a45fe0ec22fa2a7 (patch)
tree8f5fad5fe6d7c3fc57aea16bcc37c4cd3bcdeee4 /src/db.go
parent693fc4e8f92df17dd944755176d6fe34b0de40e3 (diff)
flags
Diffstat (limited to 'src/db.go')
-rw-r--r--src/db.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db.go b/src/db.go
index e36cf21..47d8158 100644
--- a/src/db.go
+++ b/src/db.go
@@ -112,7 +112,7 @@ type State struct {
 }
 
 func NewState() (*State, error) {
-	db, err := sql.Open("sqlite3", database_file)
+	db, err := sql.Open("sqlite3", databasePath)
 	if err != nil {
 		log.Println("Error opening the db: ", err)
 		return nil, err