From 01ebdfecd372be79841849fd3246fd867eb8372d Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sat, 1 Jul 2023 16:18:05 +0900 Subject: [PATCH] bugfix: pass 'prompt' and 'extra_data' to get_input_data for determine IS_CHANGED --- worklist_execution.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worklist_execution.py b/worklist_execution.py index 9d9ad8940..054c94354 100644 --- a/worklist_execution.py +++ b/worklist_execution.py @@ -329,7 +329,7 @@ def worklist_will_execute(prompt, outputs, worklist): return will_execute -def worklist_output_delete_if_changed(prompt, old_prompt, outputs, next_nodes, muted_nodes): +def worklist_output_delete_if_changed(prompt, old_prompt, outputs, next_nodes, muted_nodes, extra_data): worklist = [] deleted = set() @@ -358,7 +358,7 @@ def worklist_output_delete_if_changed(prompt, old_prompt, outputs, next_nodes, m if unique_id in old_prompt and 'is_changed' in old_prompt[unique_id]: is_changed_old = old_prompt[unique_id]['is_changed'] if 'is_changed' not in value: - input_data_all = get_input_data(inputs, class_def, unique_id, outputs) + input_data_all = get_input_data(inputs, class_def, unique_id, outputs, prompt=prompt, extra_data=extra_data) if input_data_all is not None: try: is_changed = map_node_over_list(class_def, input_data_all, "IS_CHANGED") @@ -508,7 +508,7 @@ class PromptExecutor: del d next_nodes = get_next_nodes_map(prompt) - worklist_output_delete_if_changed(prompt, self.old_prompt, self.outputs, next_nodes, muted_nodes) + worklist_output_delete_if_changed(prompt, self.old_prompt, self.outputs, next_nodes, muted_nodes, extra_data) current_outputs = set(self.outputs.keys()) for x in list(self.outputs_ui.keys()):