fix search to read from database

This commit is contained in:
geoffrey45
2022-06-16 09:36:42 +03:00
parent 88247e0553
commit 79a7161827
12 changed files with 67 additions and 64 deletions
+7 -1
View File
@@ -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,