mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: Variable splitting and parameter extraction result in data loss when there is a form collection node (#4236)
This commit is contained in:
parent
173994e65a
commit
9c6bf019c8
|
|
@ -86,7 +86,7 @@ class BaseParameterExtractionNode(IParameterExtractionNode):
|
|||
|
||||
def save_context(self, details, workflow_manage):
|
||||
for key, value in details.get('result').items():
|
||||
self.context['key'] = value
|
||||
self.context[key] = value
|
||||
self.context['result'] = details.get('result')
|
||||
|
||||
def execute(self, input_variable, variable_list, model_params_setting, model_id, **kwargs) -> NodeResult:
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ def smart_jsonpath_search(data: dict, path: str):
|
|||
class BaseVariableSplittingNode(IVariableSplittingNode):
|
||||
def save_context(self, details, workflow_manage):
|
||||
for key, value in details.get('result').items():
|
||||
self.context['key'] = value
|
||||
self.context[key] = value
|
||||
self.context['result'] = details.get('result')
|
||||
|
||||
def execute(self, input_variable, variable_list, **kwargs) -> NodeResult:
|
||||
|
|
|
|||
Loading…
Reference in New Issue