Skip to content
Snippets Groups Projects
Commit 799efeb4 authored by Jonas Wolff's avatar Jonas Wolff
Browse files

fixed birthplace function overwrite bug

parent df5efc59
No related branches found
No related tags found
1 merge request!20Example
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment