Skip to content

Commit

Permalink
FLIX BUS OH MY GOD SHUT UP
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Nov 25, 2024
1 parent 65a8776 commit 9374fcd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/aspen/import_alpenrose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,7 @@ pub async fn new_rt_data(
trip_id_to_trip.insert(trip.trip_id.clone(), trip);
}

for (trip_id, trips_in_cache) in
compressed_trip_internal_cache.compressed_trips {
for (trip_id, trips_in_cache) in compressed_trip_internal_cache.compressed_trips {
trip_id_to_trip.insert(trip_id.clone(), trips_in_cache.clone());
}

Expand Down
14 changes: 5 additions & 9 deletions src/birch/api_key_management.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,23 +191,19 @@ pub async fn export_realtime_keys(

let mut wtr = WriterBuilder::new().from_writer(vec![]);

wtr.serialize(("onestop_feed_id", "passwords", "last_updated_ms")).unwrap();

for row in realtime_passwords.unwrap() {
wtr.serialize((
row.onestop_feed_id,
row.passwords,
row.last_updated_ms,
))
wtr.serialize(("onestop_feed_id", "passwords", "last_updated_ms"))
.unwrap();

for row in realtime_passwords.unwrap() {
wtr.serialize((row.onestop_feed_id, row.passwords, row.last_updated_ms))
.unwrap();
}

let data_str = String::from_utf8(wtr.into_inner().unwrap()).unwrap();

HttpResponse::Ok()
.append_header(("Cache-Control", "no-cache"))
.body(data_str)

}

#[actix_web::get("/getrealtimekeys/")]
Expand Down
1 change: 1 addition & 0 deletions src/birch/nearby_departures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ pub async fn nearby_from_coords(

let stops_table = stops
.iter()
.filter(|stop| stop.chateau.as_str() != "greyhound~flix")
.map(|stop| {
(
(stop.chateau.clone(), stop.gtfs_id.clone()),
Expand Down

0 comments on commit 9374fcd

Please sign in to comment.