Refactoring duplicate code.
This commit is contained in:
parent
5b01a82607
commit
7a59b5778c
1 changed files with 2 additions and 2 deletions
|
@ -70,13 +70,13 @@ class SongManager(RadioManager):
|
||||||
"""
|
"""
|
||||||
Jingles that are currently published and are enabled.
|
Jingles that are currently published and are enabled.
|
||||||
"""
|
"""
|
||||||
return self.enabled().published().jingles()
|
return self.available().jingles()
|
||||||
|
|
||||||
def available_songs(self):
|
def available_songs(self):
|
||||||
"""
|
"""
|
||||||
Songs that are currently published and are enabled.
|
Songs that are currently published and are enabled.
|
||||||
"""
|
"""
|
||||||
return self.enabled().published().songs()
|
return self.available().songs()
|
||||||
|
|
||||||
def playlist_length(self):
|
def playlist_length(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue