mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-07 03:35:35 +00:00
22 lines
515 B
Python
22 lines
515 B
Python
"""
|
|
Prepares the server for use.
|
|
"""
|
|
from app.store.store 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()
|