mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
add migration to drop album and artist tables
This commit is contained in:
@@ -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