Expand return-home heuristic to cover more countries and reorganize logic to prioritize trip-based location detection over individual travel data. Key changes: 1. Add Balkan countries (GR, AL, XK, HR, etc.) to European heuristic 2. Add major international countries (US, CA, IN, JP, etc.) to heuristic 3. Change condition from >1 day to >=1 day for faster return detection 4. Move trip heuristic check before individual flight/accommodation lookup This fixes cases where stopovers or connections (like Kosovo→Albania on July 1) were overriding the trip-based "return home" logic. Now correctly detects return home from all types of trips including Balkan and international destinations. All weekend location tests now pass - ensures locations show "Bristol" when free (no events) or show trip locations when traveling. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
---|---|---|
.. | ||
test_agenda.py | ||
test_busy.py | ||
test_utils.py |