start: rewrite the database layer using a freaking ORM

+ start ditching in-mem stores
+ move main db table to a new name
+ experiments!
This commit is contained in:
cwilvx
2024-06-24 00:26:47 +03:00
parent c3472a865a
commit c42ec4dcde
27 changed files with 1399 additions and 397 deletions
+6 -4
View File
@@ -21,6 +21,7 @@ import setproctitle
from app.api import create_api
from app.arg_handler import ProcessArgs
from app.lib.tagger import IndexEverything
from app.lib.watchdogg import Watcher as WatchDog
from app.periodic_scan import run_periodic_scans
from app.plugins.register import register_plugins
@@ -49,10 +50,11 @@ werkzeug.setLevel(logging.ERROR)
# Background tasks
# @background
# def bg_run_setup():
# pass
@background
def bg_run_setup():
pass
# run_periodic_scans()
IndexEverything()
# @background
@@ -63,7 +65,7 @@ werkzeug.setLevel(logging.ERROR)
@background
def run_swingmusic():
log_startup_info()
# bg_run_setup()
bg_run_setup()
register_plugins()
# start_watchdog()