Spaces:
Sleeping
Sleeping
OnlyBiggg
commited on
Commit
·
3d96c67
1
Parent(s):
413c742
test time
Browse files
app/dialogflow/services/dialog_service.py
CHANGED
|
@@ -135,7 +135,9 @@ class DialogService:
|
|
| 135 |
def get_all_trip_by_office(trips: list, origin_id: int = None, dest_id: int = None) -> list:
|
| 136 |
if origin_id is None and dest_id is None:
|
| 137 |
return trips
|
| 138 |
-
|
|
|
|
|
|
|
| 139 |
result = []
|
| 140 |
for trip in trips:
|
| 141 |
pickup_points = trip.get("pickup_points", [])
|
|
|
|
| 135 |
def get_all_trip_by_office(trips: list, origin_id: int = None, dest_id: int = None) -> list:
|
| 136 |
if origin_id is None and dest_id is None:
|
| 137 |
return trips
|
| 138 |
+
time_trips = [ trip["raw_departure_time"] for trip in trips]
|
| 139 |
+
print(time_trips)
|
| 140 |
+
|
| 141 |
result = []
|
| 142 |
for trip in trips:
|
| 143 |
pickup_points = trip.get("pickup_points", [])
|