mirror of
https://gitlab.com/KKlochko/tui-rsync.git
synced 2026-08-12 17:57:43 +00:00
(Added) the configuration to the application.
Moved database file to the user data directory.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user