From 799efeb45d38fa58c1dc219fb6acf303702847b3 Mon Sep 17 00:00:00 2001 From: Jonas Wolff <jonasw96@gmx.net> Date: Wed, 12 Dec 2018 13:58:00 +0100 Subject: [PATCH] fixed birthplace function overwrite bug --- example/actions.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/example/actions.py b/example/actions.py index 10925bf..cbbd568 100644 --- a/example/actions.py +++ b/example/actions.py @@ -31,9 +31,8 @@ class ActionUtterBirthplace(Action): def run(self, dispatcher, tracker, domain): person = tracker.get_slot('physicist') birthplace = tracker.get_slot('birthplace') - dispatcher.utter_message(birthplace) if birthplace == None: - dispatcher.utter_message("Error: Birthplace of " + person + "not known.") + dispatcher.utter_message("Error: Birthplace of " + person + " not known.") else: dispatcher.utter_message("The birthplace of " + person + " is " + birthplace + ".") return [] @@ -43,7 +42,7 @@ class ActionUtterBirthplace(Action): # class ActionSearchDayOfDeath(Action): def name(self): - return 'action_search_birthplace' + return 'action_search_day_of_death' def run(self, dispatcher, tracker, domain): import csv -- GitLab