Skip to content

Commit

Permalink
Update validate_restaurant_form.py
Browse files Browse the repository at this point in the history
Fix incorrect comment
  • Loading branch information
trammell authored Aug 22, 2024
1 parent d089acb commit cc841e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actions/validate_restaurant_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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}
return {"restaurant_name": None}

0 comments on commit cc841e2

Please sign in to comment.