1
0
mirror of https://github.com/ijaric/voice_assistant.git synced 2025-05-24 22:43:26 +00:00

fix: [#8] remove unnecessary debug check

This commit is contained in:
ksieuk 2023-10-08 17:03:14 +03:00
parent 48b55a4035
commit fdc50d8c55

View File

@ -11,10 +11,6 @@ class ProjectSettings(pydantic_settings.BaseSettings):
extra="ignore", extra="ignore",
) )
debug: str = "false" debug: bool = False
jwt_secret_key: pydantic.SecretStr = pydantic.Field(default=..., validation_alias="jwt_secret_key") jwt_secret_key: pydantic.SecretStr = pydantic.Field(default=..., validation_alias="jwt_secret_key")
headers: dict[str, str] = {"Content-Type": "application/json"} headers: dict[str, str] = {"Content-Type": "application/json"}
@pydantic.field_validator("debug")
def validate_debug(cls, v: str) -> bool:
return v.lower() == "true"