From 94020b312652f67a232c3233f9bec25746bfcc1a Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 18 Sep 2023 15:45:40 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20chore(manager.py):=20update=20va?= =?UTF-8?q?riable=20names=20for=20superuser=20in=20database=20manager=20an?= =?UTF-8?q?d=20utils=20module=20for=20better=20clarity=20and=20consistency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The variable names `FIRST_SUPERUSER` and `FIRST_SUPERUSER_PASSWORD` have been changed to `SUPERUSER` and `SUPERUSER_PASSWORD` respectively in the `manager.py` and `utils.py` files. This change improves clarity and consistency in the codebase. --- src/backend/langflow/services/database/manager.py | 2 +- src/backend/langflow/services/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/langflow/services/database/manager.py b/src/backend/langflow/services/database/manager.py index fb7bcdf8f..3c842bf52 100644 --- a/src/backend/langflow/services/database/manager.py +++ b/src/backend/langflow/services/database/manager.py @@ -166,7 +166,7 @@ class DatabaseManager(Service): try: settings_manager = get_settings_manager() # remove the default superuser if auto_login is enabled - # using the FIRST_SUPERUSER to get the user + # using the SUPERUSER to get the user if settings_manager.auth_settings.AUTO_LOGIN: logger.debug("Removing default superuser") username = settings_manager.auth_settings.SUPERUSER diff --git a/src/backend/langflow/services/utils.py b/src/backend/langflow/services/utils.py index 4b16edc69..40ab1d1bd 100644 --- a/src/backend/langflow/services/utils.py +++ b/src/backend/langflow/services/utils.py @@ -11,7 +11,7 @@ def setup_superuser(): """ Setup the superuser. """ - # We will use the FIRST_SUPERUSER and FIRST_SUPERUSER_PASSWORD + # We will use the SUPERUSER and SUPERUSER_PASSWORD # vars on settings_manager.auth_settings to create the superuser # if it does not exist. settings_manager = get_settings_manager()