From cc841e273ed62d3754d6bed9aa1af6f912189464 Mon Sep 17 00:00:00 2001 From: John Trammell <22057+trammell@users.noreply.github.com> Date: Thu, 22 Aug 2024 10:24:34 -0500 Subject: [PATCH] Update validate_restaurant_form.py Fix incorrect comment --- actions/validate_restaurant_form.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/validate_restaurant_form.py b/actions/validate_restaurant_form.py index c33b573..2e8b5d3 100644 --- a/actions/validate_restaurant_form.py +++ b/actions/validate_restaurant_form.py @@ -37,7 +37,7 @@ def validate_restaurant_name( tracker: Tracker, domain: DomainDict, ) -> Dict[Text, Any]: - """Validate cuisine value.""" + """Validate restaurant name.""" restaurants = get_restaurants(tracker.sender_id) restaurant_names = set([ r.name.lower() @@ -47,4 +47,4 @@ def validate_restaurant_name( if slot_value.lower() in restaurant_names: return {"restaurant_name": slot_value} else: - return {"restaurant_name": None} \ No newline at end of file + return {"restaurant_name": None}