mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 10:04:42 +00:00
rewrite album and artist stores using in-mem hashmap stores
This commit is contained in:
1 parent
83e105a198
commit
58c90d95b1
11 files changed
+297
-237
No files matched your search
@@ -317,7 +317,6 @@ class AlbumTable(Base):
|
||||
|
||||
for artist in artisthashes:
|
||||
result = conn.execute(
|
||||
# NOTE: The artist dict keys need to in the same order they appear in the db for this to work!
|
||||
select(AlbumTable).where(AlbumTable.artisthashes.contains(artist))
|
||||
)
|
||||
albums[artist] = albums_to_dataclasses(result.fetchall())
|
||||
|
||||
Reference in new issue
Block a user