Skip to content

Commit

Permalink
updating keys for airport name
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderdamen committed Oct 21, 2018
1 parent 259d6c1 commit 0406b33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def _get_icao_code_from_dialogflow(request_dictionary):
String|None -- The ICAO code string, or None
"""
try:
return request_dictionary['result']['parameters']['airport']['ICAO']
return request_dictionary['queryResult']['parameters']['airport']['ICAO']
except KeyError as e:
return None

Expand All @@ -132,7 +132,7 @@ def _get_airport_name_from_dialogflow(request_dictionary):
String|None -- The airport name string, or None
"""
try:
return request_dictionary['result']['parameters']['airport']['name']
return request_dictionary['queryResult']['parameters']['airport']['name']
except KeyError as e:
return None

Expand Down

0 comments on commit 0406b33

Please sign in to comment.