OnlyBiggg commited on
Commit
355c2a3
·
1 Parent(s): 010b501
app/dialogflow/services/dialog_service.py CHANGED
@@ -123,6 +123,9 @@ class DialogService:
123
  def get_trip_by_time_and_office_id(trips: list, time: str ,origin_id: int, dest_id: int) -> dict:
124
  if time is None or origin_id is None or dest_id is None:
125
  return {}
 
 
 
126
  for trip in trips:
127
  if trip and trip["raw_departure_time"] == time and trip["route"]["origin_hub_office_id"] == origin_id and trip["route"]["dest_hub_office_id"] == dest_id:
128
  return trip
 
123
  def get_trip_by_time_and_office_id(trips: list, time: str ,origin_id: int, dest_id: int) -> dict:
124
  if time is None or origin_id is None or dest_id is None:
125
  return {}
126
+
127
+ print(origin_id, dest_id)
128
+ print(time)
129
  for trip in trips:
130
  if trip and trip["raw_departure_time"] == time and trip["route"]["origin_hub_office_id"] == origin_id and trip["route"]["dest_hub_office_id"] == dest_id:
131
  return trip