(Added) the configuration to the application.

Moved database file to the user data directory.
This commit is contained in:
2023-03-17 16:55:49 +02:00
parent 353d1ec478
commit 1dce152bbe
6 changed files with 78 additions and 2 deletions
+3 -1
View File
@@ -18,9 +18,11 @@
################################################################################
from peewee import *
from config.app import App
import os
db = SqliteDatabase('sync.db')
app = App()
db = SqliteDatabase(app.get_db_path())
class BaseModel(Model):
class Meta: