From 86bdb2386531c8b0ffa2d452142723c5e3335934 Mon Sep 17 00:00:00 2001 From: ogabrielluiz Date: Tue, 18 Jun 2024 23:07:00 -0300 Subject: [PATCH] refactor: Add load_from_db attribute to SecretStrInput class The code changes in inputs.py add a new attribute `load_from_db` to the `SecretStrInput` class. This attribute controls whether the input should be loaded from the database or not. By default, it is set to `True`. This refactor improves the flexibility and configurability of the code. --- src/backend/base/langflow/inputs/inputs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/base/langflow/inputs/inputs.py b/src/backend/base/langflow/inputs/inputs.py index c8d4f2202..9bd9fec87 100644 --- a/src/backend/base/langflow/inputs/inputs.py +++ b/src/backend/base/langflow/inputs/inputs.py @@ -190,6 +190,7 @@ class SecretStrInput(BaseInputMixin, DatabaseLoadMixin): field_type: Optional[SerializableFieldTypes] = FieldTypes.PASSWORD password: CoalesceBool = Field(default=True) input_types: list[str] = [] + load_from_db: CoalesceBool = True class IntInput(BaseInputMixin, ListableInputMixin, RangeMixin):