mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 23:24:42 +00:00
add migration to drop album and artist tables
This commit is contained in:
1 parent
c465116f3d
commit
3f1ae30dd5
3 files changed
+28
-3
No files matched your search
@@ -197,8 +197,6 @@ class SearchAll:
|
||||
itertools.groupby(mapped_items, lambda x: x["type"])
|
||||
]
|
||||
|
||||
print(len(groups))
|
||||
|
||||
# merge items of a group into a dict that looks like: {"albums": [album1, ...]}
|
||||
groups = [
|
||||
{f"{group[0]['type']}s": [i['item'] for i in group]} for group in groups
|
||||
|
||||
Reference in new issue
Block a user