This commit is contained in:
mungai-njoroge
2023-08-02 14:26:19 +03:00
parent 9c9a187083
commit efb6aae927
4 changed files with 443 additions and 438 deletions
+2 -6
View File
@@ -79,12 +79,6 @@ class Search:
finder = searchlib.SearchAll()
return finder.search(self.query)
def search_all(self):
"""Calls all the search methods."""
self.search_tracks()
self.search_albums()
self.search_artists()
# self.search_playlists()
@api.route("/search/tracks", methods=["GET"])
@@ -211,3 +205,5 @@ def search_load_more():
"artists": a[index: index + SEARCH_COUNT],
"more": len(a) > index + SEARCH_COUNT,
}
# TODO: Rewrite this file using generators where possible