From 4c8c3528de50f87a77c41dac7e4cbdea21a7c75b Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sat, 1 Jul 2023 17:09:15 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20refactor(settings.py):=20remove?= =?UTF-8?q?=20commented=20out=20code=20for=20setting=20default=20database?= =?UTF-8?q?=20URL=20The=20commented=20out=20code=20was=20unnecessary=20and?= =?UTF-8?q?=20cluttered=20the=20codebase.=20Removing=20it=20improves=20rea?= =?UTF-8?q?dability=20and=20maintainability=20of=20the=20code.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/settings.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/backend/langflow/settings.py b/src/backend/langflow/settings.py index acf25464e..b2571780e 100644 --- a/src/backend/langflow/settings.py +++ b/src/backend/langflow/settings.py @@ -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: