]> kaliko git repositories - mpd-sima.git/commitdiff
Get rid of a useless direct db call
authorkaliko <kaliko@azylum.org>
Sat, 16 May 2020 09:53:04 +0000 (11:53 +0200)
committerkaliko <kaliko@azylum.org>
Sat, 16 May 2020 09:53:04 +0000 (11:53 +0200)
sima/lib/webserv.py

index f72215cf60ec3e3c1746a800be6845f751663d76..734a5f0b40a39b4e895ebc277f2a73691265aaab 100644 (file)
@@ -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