mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
revert to for-loop for creating albums
- use ThreadPoolExecutor to create tracks
This commit is contained in:
@@ -23,6 +23,7 @@ class Albums(db.Mongo):
|
||||
"""
|
||||
Inserts a new album object into the database.
|
||||
"""
|
||||
album = album.__dict__
|
||||
return self.collection.update_one(
|
||||
{
|
||||
"album": album["title"],
|
||||
|
||||
Reference in New Issue
Block a user