mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 04:32:42 +00:00
The SQL page labels a sleep session by the last row of any writer; the reconstruction labels it by its winning writer. A watch stopping before midnight beside a phone whose in-bed span ran past it gave two days, and matching the two by label dropped the night from the list while the total still counted it. Each reconstructed session is now filed under the page night whose span holds it and takes that night's label, which the drill-down also asks by. A sleep drill-down scans 36 hours either side of its day instead of the whole history. Both day branches and the sleep list resolve the zone through the same stored-zone resolver, so a drill-down always cuts the days its list row summed. The list description states the real page bounds: a day-sum page takes `limit` as asked, a sleep page caps at 1000 nights. Refs #1245
3.1 MiB
3.1 MiB