fix album search

This commit is contained in:
geoffrey45 authored and Mungai Geoffrey committed 2022-07-06 17:38:33 +03:00
1 parent 26b7cd376d
commit 2f78ee3883
5 files changed
+4 -38

No files matched your search

+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,