mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
move the populate function to separate file
This commit is contained in:
@@ -26,8 +26,11 @@ def create_all_tracks() -> List[models.Track]:
|
||||
except FileNotFoundError:
|
||||
instances.tracks_instance.remove_song_by_id(track["_id"]["$oid"])
|
||||
api.DB_TRACKS.remove(track)
|
||||
try:
|
||||
tracks.append(models.Track(track))
|
||||
except KeyError:
|
||||
print(track)
|
||||
|
||||
tracks.append(models.Track(track))
|
||||
_bar.next()
|
||||
|
||||
_bar.finish()
|
||||
|
||||
Reference in New Issue
Block a user