Move database and config to /data

This commit is contained in:
2019-05-31 03:52:37 +02:00
parent 548b15340b
commit e51b6ade9a
3 changed files with 9 additions and 2 deletions

View File

@ -9,7 +9,7 @@ entry_table = "entries"
index_label = "Id"
def open_db():
conn = sqlite3.connect("test.db")
conn = sqlite3.connect("data/test.db")
conn.execute('PRAGMA encoding = "UTF-8";')
return conn