swingmusic/app/setup/__init__.py
2023-03-25 05:26:01 +03:00

22 lines
516 B
Python

"""
Prepares the server for use.
"""
from app.store.folder import FolderStore
from app.setup.files import create_config_dir
from app.setup.sqlite import setup_sqlite, run_migrations
from app.store.albums import AlbumStore
from app.store.tracks import TrackStore
from app.store.artists import ArtistStore
def run_setup():
create_config_dir()
setup_sqlite()
run_migrations()
TrackStore.load_all_tracks()
FolderStore.process_folders()
AlbumStore.load_albums()
ArtistStore.load_artists()