Skip to content

Commit

Permalink
fix: prevent duplicate env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
italojohnny committed Oct 19, 2024
1 parent 814c477 commit cab8c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/base/langflow/services/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def set_user_agent(cls, value):
def set_variables_to_get_from_environment(cls, value):
if isinstance(value, str):
value = value.split(",")
return VARIABLES_TO_GET_FROM_ENVIRONMENT + value
return list(set(VARIABLES_TO_GET_FROM_ENVIRONMENT + value))

@field_validator("log_file", mode="before")
@classmethod
Expand Down

0 comments on commit cab8c67

Please sign in to comment.