mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 14:08:08 +01:00
fix train_api IDs, mock search_fixtures function and arg rename
This commit is contained in:
4
thirdparty/train_api.py
vendored
4
thirdparty/train_api.py
vendored
@@ -68,7 +68,7 @@ class TrainServer(BaseHTTPRequestHandler):
|
||||
arr_hour = arr_hour % 24
|
||||
|
||||
journey = {
|
||||
"id": "T%s".format(random.randint(1000, 9999)),
|
||||
"id": "T{}".format(random.randint(1000, 9999)),
|
||||
"type": "outbound",
|
||||
"departure": origin,
|
||||
"arrival": destination,
|
||||
@@ -101,7 +101,7 @@ class TrainServer(BaseHTTPRequestHandler):
|
||||
arr_hour = arr_hour % 24
|
||||
|
||||
journey = {
|
||||
"id": "T%s".format(random.randint(1000, 9999)),
|
||||
"id": "T{}".format(random.randint(1000, 9999)),
|
||||
"type": "return",
|
||||
"departure": destination,
|
||||
"arrival": origin,
|
||||
|
||||
Reference in New Issue
Block a user