fix search to read from database

This commit is contained in:
geoffrey45 committed 2022-06-16 09:36:42 +03:00
1 parent 88247e0553
commit 79a7161827
12 files changed
+67 -64

No files matched your search

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