Everything written this session that has not been through the device: rounds 43 to 48 (each patch adversarially verified, 43's transient-notice expectation fixed), a partial round 49, the pipeline scripts, the Android Auto design and the icon comparison mock. Also the two harness changes that were never A/B'd — adaptive waits, which may only shorten a declared wait and never lengthen it, and a ship that runs the mock walk and the deploy at the same time. The A/B and its 255-step baseline are in handoff/tools; main stays at what the phone has actually walked.
18 lines
672 B
Plaintext
18 lines
672 B
Plaintext
/// Which record a track belongs to.
|
|
///
|
|
/// The one lookup that was missing: everything else here starts from an
|
|
/// album. A tap on a track row in a car has to become "that record, from
|
|
/// that track" — the phone's own `playIndexRow` behaviour — and without
|
|
/// this the car would hand back a one-song queue.
|
|
pub fn track_album(&self, track_id: i64) -> Result<Option<i64>> {
|
|
let conn = self.conn.lock().unwrap();
|
|
Ok(conn
|
|
.query_row(
|
|
"SELECT album_id FROM tracks WHERE id = ?1",
|
|
[track_id],
|
|
|r| r.get::<_, i64>(0),
|
|
)
|
|
.optional()?)
|
|
}
|
|
|