sleep tracking app: add feature
sleep tracking app: add feature: a task in smol-software-harbor (Harbor dataset). Add nightly average(sessions) to sleep/sessions.py : sessions are (date, start, end) tuples (the date of the evening the session started). Naps shorter than 3 hours are ignored, the remaining sessions of the same…
The task
Add `nightly_average(sessions)` to `sleep/sessions.py`: `sessions` are `(date, start, end)` tuples (the date of the evening the session started). Naps shorter than 3 hours are ignored, the remaining sessions of the same date are added up, and the function returns the average of these nightly totals rounded to 2…
Part of efederici/smol-software-harbor.