Skip to content

Commit

Permalink
fix convert_boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Sep 25, 2024
1 parent f0464c4 commit d7f9ed5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ def convert_int(cls, value):
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)
Expand Down

0 comments on commit d7f9ed5

Please sign in to comment.