WP 9c Phase 1 #12

Merged
Lars merged 14 commits from develop into main 2026-03-22 14:14:34 +01:00
Showing only changes of commit da376a8b18 - Show all commits

View File

@ -545,11 +545,12 @@ async def import_apple_health_sleep(
night['awake_minutes']
)
# Prepare JSONB segments
# Prepare JSONB segments with full datetime
sleep_segments = [
{
'phase': seg['phase'],
'start': seg['start'].strftime('%H:%M'),
'start': seg['start'].isoformat(), # Full datetime: 2026-03-21T22:30:00
'end': seg['end'].isoformat(), # Full datetime: 2026-03-21T23:15:00
'duration_min': seg['duration_min']
}
for seg in night['segments']