From 8870413a27f675d121ed8c841e8673b597ab15c3 Mon Sep 17 00:00:00 2001 From: kaliko Date: Sat, 16 May 2020 11:53:04 +0200 Subject: [PATCH] Get rid of a useless direct db call --- sima/lib/webserv.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sima/lib/webserv.py b/sima/lib/webserv.py index f72215c..734a5f0 100644 --- a/sima/lib/webserv.py +++ b/sima/lib/webserv.py @@ -301,9 +301,8 @@ class WebService(Plugin): def _get_album_history(self, artist): """Retrieve album history""" - duration = self.daemon_conf.getint('sima', 'history_duration') albums_list = set() - for trk in self.sdb.get_history(artist=artist.name, duration=duration): + for trk in self.get_history(artist=artist.name): albums_list.add(trk[1]) return albums_list -- 2.39.5