add load time and autofocus
Some checks failed
Create and publish a Docker image / build-and-push-image (push) Failing after 10m5s
Some checks failed
Create and publish a Docker image / build-and-push-image (push) Failing after 10m5s
This commit is contained in:
parent
917428507d
commit
5539c8521d
10 changed files with 153 additions and 11 deletions
|
|
@ -26,6 +26,14 @@ impl DbObj<StopSchedule> for StopSchedule {
|
|||
.execute(&mut **tx)
|
||||
.await?;
|
||||
|
||||
sqlx::query("
|
||||
CREATE INDEX septa_stop_schedule_trip_id_idx ON septa_stop_schedules (trip_id);
|
||||
").execute(&mut **tx).await?;
|
||||
|
||||
sqlx::query("
|
||||
CREATE INDEX septa_stop_schedule_service_id_idx ON septa_stop_schedules (service_id);
|
||||
").execute(&mut **tx).await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
async fn insert_many(scheds: Vec<StopSchedule>, tx: &mut Transaction<'_, Postgres>) -> anyhow::Result<()> {
|
||||
|
|
@ -107,6 +115,7 @@ impl FromSeptaJson<septa_json::stop_schedule::StopSchedule> for StopSchedule {
|
|||
septa_json::stop_schedule::TripId::RegionalRail(x) => x,
|
||||
septa_json::stop_schedule::TripId::Other(y) => y.to_string()
|
||||
},
|
||||
stop_name: String::from(""),
|
||||
service_id: json_sched.service_id,
|
||||
// FIXME: Actually get direction
|
||||
direction_id: json_sched.direction_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue