From: kaliko Date: Sat, 16 May 2020 09:53:04 +0000 (+0200) Subject: Get rid of a useless direct db call X-Git-Tag: 0.16.0.dev0~3 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;ds=sidebyside;h=8870413a27f675d121ed8c841e8673b597ab15c3;p=mpd-sima.git Get rid of a useless direct db call --- 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