Remove platform from JSON.

This commit is contained in:
Rob Holland
2025-02-13 17:17:13 +00:00
parent 75f2d7a063
commit 94cbce78eb

View File

@@ -110,7 +110,6 @@ class TrainServer(BaseHTTPRequestHandler):
"arrival_time": format_datetime( "arrival_time": format_datetime(
year, month, arr_day, arr_hour, arr_minute year, month, arr_day, arr_hour, arr_minute
), ),
"platform": str(random.randint(1, 8)),
"price": round(30 + random.random() * 50, 2), "price": round(30 + random.random() * 50, 2),
} }
journeys.append(journey) journeys.append(journey)
@@ -143,7 +142,6 @@ class TrainServer(BaseHTTPRequestHandler):
"arrival_time": format_datetime( "arrival_time": format_datetime(
year, month, arr_day, arr_hour, arr_minute year, month, arr_day, arr_hour, arr_minute
), ),
"platform": str(random.randint(1, 8)),
"price": round(30 + random.random() * 50, 2), "price": round(30 + random.random() * 50, 2),
} }
journeys.append(journey) journeys.append(journey)