swingmusic/app/setup/__init__.py
geoffrey45 e3ec9db989 add method and route to search across tracks, albums and artists.
+ break models into separate files
+ same for the utils and setup
2023-03-09 13:08:50 +03:00

18 lines
361 B
Python

"""
Prepares the server for use.
"""
from app.db.store import Store
from app.setup.files import create_config_dir
from app.setup.sqlite import setup_sqlite, run_migrations
def run_setup():
create_config_dir()
setup_sqlite()
run_migrations()
Store.load_all_tracks()
Store.process_folders()
Store.load_albums()
Store.load_artists()