fix additional route

This commit is contained in:
Nicholas Orlowsky 2025-10-08 07:29:29 -04:00
parent bc730807e1
commit 73a52b4c95
No known key found for this signature in database
GPG key ID: A9F3BA4C0AA7A70B
2 changed files with 1 additions and 66 deletions

View file

@ -1,65 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT \n septa_stop_schedules.route_id,\n septa_stops.name as stop_name,\n trip_id, \n septa_stop_schedules.service_id, \n septa_stop_schedules.direction_id,\n arrival_time,\n stop_id,\n stop_sequence\n FROM \n septa_stop_schedules\n INNER JOIN septa_stops \n ON septa_stops.id = septa_stop_schedules.stop_id\n INNER JOIN septa_schedule_days\n ON septa_schedule_days.date = $2 \n AND\n septa_schedule_days.service_id = septa_stop_schedules.service_id\n WHERE \n septa_stop_schedules.route_id = $1 OR septa_stop_schedules.route_id = 'B2'\n ;",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "route_id",
"type_info": "Text"
},
{
"ordinal": 1,
"name": "stop_name",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "trip_id",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "service_id",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "direction_id",
"type_info": "Int8"
},
{
"ordinal": 5,
"name": "arrival_time",
"type_info": "Int8"
},
{
"ordinal": 6,
"name": "stop_id",
"type_info": "Int8"
},
{
"ordinal": 7,
"name": "stop_sequence",
"type_info": "Int8"
}
],
"parameters": {
"Left": [
"Text",
"Text"
]
},
"nullable": [
false,
false,
false,
false,
false,
false,
false,
false
]
},
"hash": "cbb6533ebd0516fda499cf9d696d41dbca67fea4f753bb19a18fe15468f58061"
}

View file

@ -134,7 +134,7 @@ pub async fn get_schedule_by_route_id(
AND AND
septa_schedule_days.service_id = septa_stop_schedules.service_id septa_schedule_days.service_id = septa_stop_schedules.service_id
WHERE WHERE
septa_stop_schedules.route_id = $1 OR septa_stop_schedules.route_id = 'B2' septa_stop_schedules.route_id = $1
;"#, ;"#,
id.clone(), id.clone(),
schedule_day_str.clone() schedule_day_str.clone()