mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 05:12:14 +00:00
get_ecg_recordings stopped at 200, get_visits at 50, the booked appointments in get_preventive_care at 25, and search at its per-source scan, all without a word, so a model read the last row as the oldest there is. capped() reads through listPage with the same semantics as the REST list cap: one row past the limit, truncated true only when that row exists. The ECG and visit results carry truncated and limit, the preventive-care result carries appointmentsTruncated and appointmentsLimit, and search carries truncated with the sources that were cut, on every page. Every capped read orders by its id as a tiebreaker; list-page-guard now checks capped() reads too, and accepts a distinct read ordered by its own key.