Commit graph

7 commits

Author SHA1 Message Date
Edward Betts a92debea5b Fix same-day flight location tracking
When multiple flights arrived on the same date, location tracking
only compared dates and missed later flights. Now compares both
date and time to handle same-day connecting flights correctly.

Example: Nov 21, 2023
- 06:15: Arrive Madrid (MVD → MAD)
- 09:15: Arrive London (MAD → LHR) ← Now properly detected as most recent

This ensures users show as "home" when they've returned to UK on
the same day as an international connection.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-16 04:10:25 +02:00
Edward Betts af492750cb Add location tracking to weekend page
Weekend page now shows specific location (city and country) for each
Saturday and Sunday based on travel history:

- Analyzes flight arrivals and accommodation check-ins to determine exact location
- Shows "home" when at Bristol, UK
- Shows "City, 🏴 Country" format when traveling
- Handles multi-location trips by finding most recent travel within trip period
- Optimized to parse YAML files once instead of per-date lookup

Closes #191

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-16 03:59:35 +02:00
Edward Betts b3e7070b84 Update tests, function moved. 2024-11-13 14:32:29 +00:00
Edward Betts e677082560 Add tests for utility functions 2024-07-07 12:02:21 +01:00
Edward Betts b0381db3b5 Add docstrings and types 2024-04-18 11:56:51 +01:00
Edward Betts 7b9362fef8 Make test suite run again. 2023-10-11 16:04:35 +01:00
Edward Betts 5649957063 Start a test suite 2023-10-06 17:54:38 +01:00