mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 22:18:09 +01:00
Reduce the number of train options returned.
This commit is contained in:
4
thirdparty/train_api.py
vendored
4
thirdparty/train_api.py
vendored
@@ -82,7 +82,7 @@ class TrainServer(BaseHTTPRequestHandler):
|
||||
|
||||
# Generate outbound journeys
|
||||
year, month, day, hour, minute = out_datetime
|
||||
for offset in [-60, -30, 0, 30, 60]:
|
||||
for offset in [-30, 0, 30]:
|
||||
# Calculate journey times
|
||||
adj_minutes = minute + offset
|
||||
adj_hour = hour + (adj_minutes // 60)
|
||||
@@ -118,7 +118,7 @@ class TrainServer(BaseHTTPRequestHandler):
|
||||
# Generate return journeys if return datetime provided
|
||||
if ret_datetime[0] is not None:
|
||||
year, month, day, hour, minute = ret_datetime
|
||||
for offset in [-60, -30, 0, 30, 60]:
|
||||
for offset in [-30, 0, 30]:
|
||||
adj_minutes = minute + offset
|
||||
adj_hour = hour + (adj_minutes // 60)
|
||||
adj_minute = adj_minutes % 60
|
||||
|
||||
Reference in New Issue
Block a user