Spaces:
Sleeping
Sleeping
OnlyBiggg
commited on
Commit
·
b283eef
1
Parent(s):
ad9c891
fi
Browse files
app/dialogflow/services/dialog_service.py
CHANGED
|
@@ -123,7 +123,7 @@ 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 |
-
|
| 127 |
for trip in trips:
|
| 128 |
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:
|
| 129 |
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 |
+
print(origin_id, dest_id)
|
| 127 |
for trip in trips:
|
| 128 |
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:
|
| 129 |
return trip
|