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.
This commit is contained in:
parent
3ea9d9c40a
commit
86bdb23865
1 changed files with 1 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue