Spaces:
Running
Running
OnlyBiggg
commited on
Commit
·
52802de
1
Parent(s):
82b30a1
fix:
Browse files
app/dialogflow/services/dialog_service.py
CHANGED
@@ -83,7 +83,7 @@ class DialogService:
|
|
83 |
print(e)
|
84 |
raise Exception("Error fetching trip data")
|
85 |
async def search_trip_by_id(self, trip_id: int, from_time: int, to_time: int, route_ids: list[int], ticket_count: int = 1):
|
86 |
-
trip = self.search_trip(from_time, to_time, route_ids, ticket_count)
|
87 |
for item in trip:
|
88 |
if trip_id == item["id"]:
|
89 |
return item
|
@@ -105,7 +105,7 @@ class DialogService:
|
|
105 |
|
106 |
async def pickup_list(self, route_id: int, way_id: int):
|
107 |
try:
|
108 |
-
data = self.stops(route_id, way_id)
|
109 |
if not data:
|
110 |
return []
|
111 |
|
@@ -131,7 +131,7 @@ class DialogService:
|
|
131 |
|
132 |
async def dropoff_list(self, route_id: int, way_id: int):
|
133 |
try:
|
134 |
-
data = self.stops(route_id, way_id)
|
135 |
if not data:
|
136 |
return []
|
137 |
|
|
|
83 |
print(e)
|
84 |
raise Exception("Error fetching trip data")
|
85 |
async def search_trip_by_id(self, trip_id: int, from_time: int, to_time: int, route_ids: list[int], ticket_count: int = 1):
|
86 |
+
trip = await self.search_trip(from_time, to_time, route_ids, ticket_count)
|
87 |
for item in trip:
|
88 |
if trip_id == item["id"]:
|
89 |
return item
|
|
|
105 |
|
106 |
async def pickup_list(self, route_id: int, way_id: int):
|
107 |
try:
|
108 |
+
data = await self.stops(route_id, way_id)
|
109 |
if not data:
|
110 |
return []
|
111 |
|
|
|
131 |
|
132 |
async def dropoff_list(self, route_id: int, way_id: int):
|
133 |
try:
|
134 |
+
data = await self.stops(route_id, way_id)
|
135 |
if not data:
|
136 |
return []
|
137 |
|