mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-08-28 03:27:31 +08:00
fix convert_boolean
This commit is contained in:
@@ -205,6 +205,8 @@ class Settings(BaseSettings):
|
|||||||
def convert_boolean(cls, value):
|
def convert_boolean(cls, value):
|
||||||
if not value:
|
if not value:
|
||||||
return False
|
return False
|
||||||
|
if str(value).upper() == "FALSE":
|
||||||
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@validator("API_TOKEN", pre=True, always=True)
|
@validator("API_TOKEN", pre=True, always=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user