mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
The systolic and diastolic reads each took the ladder's source per day on their own. Whenever a source held only half of a reading on a day (a deleted diastolic, an orphaned sample, a sub-floor systolic), the two picks diverged and the pairing joined one source's systolic to another source's diastolic. A sub-floor systolic could also claim a day and then contribute nothing, leaving the day empty although a lower-ranked source had a valid reading. The source is now picked per day from the systolic rows that pass the floor, both halves are read from it in one statement, and a pair is only made within one source, which also covers a reading that straddles midnight.