fix: variable pool mapping variable mixed up (#3378)

This commit is contained in:
takatost 2024-04-11 23:19:28 +08:00 committed by GitHub
parent 0dada847ef
commit 164ef26a60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,9 +22,6 @@ class ValueType(Enum):
class VariablePool: class VariablePool:
variables_mapping = {}
user_inputs: dict
system_variables: dict[SystemVariable, Any]
def __init__(self, system_variables: dict[SystemVariable, Any], def __init__(self, system_variables: dict[SystemVariable, Any],
user_inputs: dict) -> None: user_inputs: dict) -> None:
@ -34,6 +31,7 @@ class VariablePool:
# 'query': 'abc', # 'query': 'abc',
# 'files': [] # 'files': []
# } # }
self.variables_mapping = {}
self.user_inputs = user_inputs self.user_inputs = user_inputs
self.system_variables = system_variables self.system_variables = system_variables
for system_variable, value in system_variables.items(): for system_variable, value in system_variables.items():