quick fix

This commit is contained in:
Justin 2023-07-12 17:19:37 +08:00 committed by GitHub
parent 7f293508d8
commit ec7c07d0a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1350,8 +1350,8 @@ def save_jokes_settings(input_settings):
current_settings['speed2'] = input_settings['speed2'].lower()
current_settings['animation'] = input_settings['animation'].lower()
current_settings['title'] = input_settings['title']
if input_settings['categories'] == '':
current_settings['categories'] = 'Any'
if not input_settings['categories']:
current_settings['categories'] = ['Any']
else:
current_settings['categories'] = input_settings['categories']
current_settings['blacklist'] = input_settings['blacklist']