mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 12:44:42 +00:00
fix search to read from database
This commit is contained in:
1 parent
88247e0553
commit
79a7161827
12 files changed
+67
-64
No files matched your search
@@ -97,7 +97,13 @@ class SearchAlbums:
|
||||
Gets all albums with a given title.
|
||||
"""
|
||||
|
||||
albums = [a.title for a in self.albums]
|
||||
albums = []
|
||||
|
||||
for album in self.albums:
|
||||
title = album.title.lower()
|
||||
if title not in albums:
|
||||
albums.append(title)
|
||||
|
||||
results = process.extract(
|
||||
self.query,
|
||||
albums,
|
||||
|
||||
Reference in new issue
Block a user