dfile updates
Some checks failed
Create and publish a Docker image / build-and-push-image (push) Failing after 4m52s

This commit is contained in:
Nicholas Orlowsky 2025-11-08 13:31:49 -05:00
parent 0b2859a9cb
commit cc301dd1b8
No known key found for this signature in database
GPG key ID: A9F3BA4C0AA7A70B
3 changed files with 6 additions and 2 deletions

View file

@ -11,7 +11,7 @@ COPY ./api/assets ./assets
COPY ./api/templates ./templates COPY ./api/templates ./templates
RUN apt -y update && apt install -y libssl-dev libc-dev sccache build-essential pkg-config RUN apt -y update && apt install -y libssl-dev protobuf-compiler libc-dev sccache build-essential pkg-config
RUN cd api && cargo build --release RUN cd api && cargo build --release
FROM debian:trixie-slim FROM debian:trixie-slim

View file

@ -94,6 +94,8 @@ impl TripTrackingService {
} else { } else {
TripTracking::Tracked( TripTracking::Tracked(
LiveTrip { LiveTrip {
trip_id: live_track.trip_id,
route_id: live_track.route_id,
delay: live_track.delay, delay: live_track.delay,
next_stop_id: match live_track.next_stop_id { next_stop_id: match live_track.next_stop_id {
Some(x) => match x.parse() { Some(x) => match x.parse() {

View file

@ -30,5 +30,7 @@ pub struct LiveTrip {
pub delay: f64, pub delay: f64,
pub next_stop_id: Option<i64>, pub next_stop_id: Option<i64>,
pub timestamp: i64, pub timestamp: i64,
pub vehicle_ids: Vec<String> pub vehicle_ids: Vec<String>,
pub trip_id: String,
pub route_id: String,
} }