mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 15:02:04 +00:00
The sleep score treated a short daytime session as a nap while the nap convention always took the longest session as the night, so a day with only an afternoon nap showed that nap as the night in the list, the night view and the dashboard, and as no night in the score. The rule and its constants now live in sleep-night.ts. Each session carries `daytimeNap`, the main night is the longest main sleep, and a day of naps alone has no main night. reconstructSleepNights picks its main session by the same rule, and the score reads that session. Sessions are filed under the day their last row ends on over every writer, the rule the SQL page cut of the sleep list can also apply. The sleep pillar's regularity floor now counts the midpoints it uses, not the nights.