🔥 refactor(settings.py): remove commented out code for setting default database URL

The commented out code was unnecessary and cluttered the codebase. Removing it improves readability and maintainability of the code.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-01 17:09:15 -03:00
commit 4c8c3528de

View file

@ -25,9 +25,6 @@ class Settings(BaseSettings):
cache: str = "InMemoryCache"
remove_api_keys: bool = False
# Create a root validator pre that will add the default
# sqlite database_url if not provided
# but check the DATABASE_URL env variable first
@root_validator(pre=True)
def set_database_url(cls, values):
if "database_url" not in values: