OnlyBiggg commited on
Commit
2bf0693
·
1 Parent(s): 7282551
app/dialogflow/api/v1/dialogflow.py CHANGED
@@ -500,7 +500,7 @@ async def is_valid_select_trip(request: Request) -> Response:
500
  for item in trip_select:
501
  if item["route"] == raw_input:
502
  id = int(item["trip_id"])
503
- trip = dialog_service.get_trip_by_id(trips, id)
504
  parameters = {
505
  "is_valid_trip": True,
506
  "trip": trip
 
500
  for item in trip_select:
501
  if item["route"] == raw_input:
502
  id = int(item["trip_id"])
503
+ trip = dialog_service.get_trip_by_id(id, trips)
504
  parameters = {
505
  "is_valid_trip": True,
506
  "trip": trip