We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f547828 commit 5b2321fCopy full SHA for 5b2321f
apps/application/flow/workflow_manage.py
@@ -552,10 +552,15 @@ def get_answer_text_list(self):
552
up_node.id):
553
result.append(node.get_answer_text())
554
else:
555
- content = result[len(result) - 1]
556
- answer_text = node.get_answer_text()
557
- result[len(result) - 1] += answer_text if len(
558
- content) == 0 else ('\n\n' + answer_text)
+ if len(result) > 0:
+ exec_index = len(result) - 1
+ content = result[exec_index]
+ result[exec_index] += answer_text if len(
559
+ content) == 0 else ('\n\n' + answer_text)
560
+ else:
561
+ answer_text = node.get_answer_text()
562
+ result.insert(0, answer_text)
563
+
564
return result
565
566
def get_next_node(self):
0 commit comments