Refactoring duplicate code.

This commit is contained in:
Josh Washburne 2018-09-24 13:02:52 -04:00
parent 5b01a82607
commit 7a59b5778c

View file

@ -70,13 +70,13 @@ class SongManager(RadioManager):
"""
Jingles that are currently published and are enabled.
"""
return self.enabled().published().jingles()
return self.available().jingles()
def available_songs(self):
"""
Songs that are currently published and are enabled.
"""
return self.enabled().published().songs()
return self.available().songs()
def playlist_length(self):
"""