fix service
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 26m18s

This commit is contained in:
Nicholas Orlowsky 2025-09-14 13:49:34 -04:00
parent 3d1e213798
commit 534c36b0f7
No known key found for this signature in database
GPG key ID: A9F3BA4C0AA7A70B
2 changed files with 20 additions and 8 deletions

View file

@ -98,7 +98,7 @@ pub async fn get_schedule_by_route_id(
) -> ::anyhow::Result<Vec<Trip>> {
let schedule_day = chrono::Utc::now().with_timezone(&chrono_tz::America::New_York);
let schedule_day_str = schedule_day.format("YYYYMMDD").to_string();
let schedule_day_str = schedule_day.format("%Y%m%d").to_string();
let rows = sqlx::query!(
r#"SELECT
@ -125,8 +125,8 @@ pub async fn get_schedule_by_route_id(
AND
service_id IN (SELECT service_id FROM septa_schedule_days WHERE date = $2)
;"#,
id,
schedule_day_str
id.clone(),
schedule_day_str.clone()
)
.fetch_all(&mut **transaction)
.await?;
@ -228,7 +228,7 @@ pub async fn get_nta_by_stop_id(
let end_secs = local_end.signed_duration_since(local_midnight).num_seconds();
let schedule_day = chrono::Utc::now().with_timezone(&chrono_tz::America::New_York);
let schedule_day_str = schedule_day.format("YYYYMMDD").to_string();
let schedule_day_str = schedule_day.format("%Y%m%d").to_string();
let name_row = sqlx::query!("SELECT name FROM septa_stops WHERE id = $1", ids[0]).fetch_one(&mut **transaction).await?;