mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-03 18:03:37 +00:00
Fix #3 for daily/backlog checkbox saving
This commit is contained in:
parent
bb505bcb99
commit
f944604f79
1 changed files with 4 additions and 0 deletions
|
@ -250,6 +250,10 @@ def checkbox_to_value(option, value_on=1, value_off=0):
|
|||
Turns checkbox option 'on' or 'true' to value_on (1)
|
||||
any other value returns value_off (0)
|
||||
"""
|
||||
|
||||
if type(option) is list:
|
||||
option = option[-1]
|
||||
|
||||
if option == 'on' or option == 'true':
|
||||
return value_on
|
||||
|
||||
|
|
Loading…
Reference in a new issue