Moved jingles_enabled to jingles category.

This commit is contained in:
Josh Washburne 2020-04-11 18:23:35 -04:00
parent 3a3881f661
commit 9b2da555d1
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@ class MaxSongRequests(IntegerPreference):
@global_preferences_registry.register
class JinglesEnabled(BooleanPreference):
section = general
section = jingles
name = 'jingles_enabled'
help_text = 'Enable jingle functionality for the radio.'
default = False

View file

@ -42,7 +42,7 @@ class RequestManager(models.Manager):
return self.new_requests().earliest('created_date')
def should_play_jingle(self):
if radio_settings['general__jingles_enabled']:
if radio_settings['jingles__jingles_enabled']:
function = radio_settings['jingles__jingles_function']
if function == 'after_songs':
limit = radio_settings['jingles__songs_per_jingle']