mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 08:34:42 +00:00
break down store.py into multiple files in a module
+ fix last updated date bug
This commit is contained in:
1 parent
43c480cf3e
commit
d43dcbff46
26 files changed
+688
-636
No files matched your search
@@ -1,17 +1,21 @@
|
||||
"""
|
||||
Prepares the server for use.
|
||||
"""
|
||||
from app.db.store import Store
|
||||
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()
|
||||
|
||||
Store.load_all_tracks()
|
||||
Store.process_folders()
|
||||
Store.load_albums()
|
||||
Store.load_artists()
|
||||
TrackStore.load_all_tracks()
|
||||
FolderStore.process_folders()
|
||||
AlbumStore.load_albums()
|
||||
ArtistStore.load_artists()
|
||||
Reference in new issue
Block a user