add migration to drop album and artist tables

This commit is contained in:
geoffrey45
2023-03-27 06:44:11 +03:00
parent c465116f3d
commit 3f1ae30dd5
3 changed files with 28 additions and 3 deletions
-2
View File
@@ -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