fix album search

This commit is contained in:
geoffrey45
2022-06-27 19:53:36 +03:00
parent 866f3278a5
commit 067b84b1c5
5 changed files with 4 additions and 38 deletions
+1 -6
View File
@@ -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,