sleep tracking app: fix bug
sleep tracking app: fix bug: a task in smol-software-harbor (Harbor dataset). The sleep tracker reports negative durations for every night that crosses midnight ( test overnight fails). Fix duration h in sleep/sessions.py according to its docstring and run python3 -m pytest -q .
The task
The sleep tracker reports negative durations for every night that crosses midnight (`test_overnight` fails). Fix `duration_h` in `sleep/sessions.py` according to its docstring and run `python3 -m pytest -q`.
Part of efederici/smol-software-harbor.