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