Skip to content

Commit 1b97721

Browse files
hiteshghugehghuge
andauthored
- form_validation issue fixed: as validation action was not considering into training (#1922)
Co-authored-by: hghuge <hghuge@digite.com>
1 parent b67f564 commit 1b97721

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kairon/shared/data/processor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1481,8 +1481,9 @@ def __prepare_training_actions(self, bot: Text, story_graphs: list[StoryGraph] =
14811481
if not story_graphs:
14821482
return actions
14831483

1484+
validate_actions = [action for action in actions if action.startswith("validate_")]
14841485
required_actions =MongoProcessor.extract_action_names_from_story_graph(story_graphs)
1485-
return [action for action in actions if action in required_actions]
1486+
return [action for action in actions if action in required_actions] + validate_actions
14861487

14871488

14881489
@staticmethod

0 commit comments

Comments
 (0)