mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
fix album search
This commit is contained in:
committed by
Mungai Geoffrey
parent
26b7cd376d
commit
2f78ee3883
@@ -97,12 +97,7 @@ class SearchAlbums:
|
||||
Gets all albums with a given title.
|
||||
"""
|
||||
|
||||
albums = []
|
||||
|
||||
for album in self.albums:
|
||||
title = album.title.lower()
|
||||
if title not in albums:
|
||||
albums.append(title)
|
||||
albums = [a.title.lower() for a in self.albums]
|
||||
|
||||
results = process.extract(
|
||||
self.query,
|
||||
|
||||
Reference in New Issue
Block a user