mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
5487dad27b
+ Remove folder store + Reduce fuzzy search score cutoff from 90% to 75% + use inheritance to init Artist class + misc
20 lines
441 B
Python
20 lines
441 B
Python
"""
|
|
Prepares the server for use.
|
|
"""
|
|
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()
|
|
AlbumStore.load_albums()
|
|
ArtistStore.load_artists()
|