Commit graph

565 commits

Author SHA1 Message Date
Edward Betts 6444229694 More validation 2025-01-30 13:34:57 +00:00
Edward Betts 24c3242189 Show CO₂ on stats page. 2025-01-30 13:34:36 +00:00
Edward Betts f6fba93a54 Add optional date parameter for weekend. 2025-01-27 08:38:55 +00:00
Edward Betts fd09faea38 Weekend page to conside hackathons. 2025-01-27 08:38:14 +00:00
Edward Betts 3a022e8736 country can be None in get_country 2025-01-24 20:31:20 +00:00
Edward Betts f5a8676336 Weekend page to show full year.
Highlight current week.
2025-01-24 20:49:16 +01:00
Edward Betts 2f574264e5 Show new badge next to new countries on travel stats page. 2025-01-24 20:19:25 +01:00
Edward Betts 340905ecff Less flags.
Only show flags for international trips to more than one country.
2025-01-24 20:01:41 +01:00
Edward Betts 010f56aabf Correct spelling mistakes 2025-01-24 18:44:05 +00:00
Edward Betts 7755bcf668 Bug fixes 2025-01-24 18:43:49 +00:00
Edward Betts c3be926ff7 Current trip summary on index page
Closes: #169
2025-01-11 15:29:07 -06:00
Edward Betts 5ee0dc9c8d Move code from trip list to macros 2025-01-11 15:20:00 -06:00
Edward Betts d7b636784d now.date() 2025-01-11 15:18:45 -06:00
Edward Betts 5d88485c48 Add offline mode support to fx.get_rates() 2025-01-11 15:15:46 -06:00
Edward Betts 19ef9c24ba Show space launch images 2025-01-11 15:05:17 -06:00
Edward Betts 77f0b17b37 Bug fix trip stats page 2024-12-12 20:47:21 +00:00
Edward Betts f6d715e52a Check flight bookings are in chronological order. 2024-12-08 14:12:36 +00:00
Edward Betts 9a204d8526 Send mail with HTML if GWR advance ticket page not parsable 2024-11-18 16:02:17 +00:00
Edward Betts f4fc839926 Move code around 2024-11-13 15:52:02 +01:00
Edward Betts 53f6d05e52 Bug fix to return 404 for unknown trip. 2024-11-13 14:36:49 +00:00
Edward Betts 40bac83790 Remove old unused code. 2024-11-13 14:36:19 +00:00
Edward Betts b3e7070b84 Update tests, function moved. 2024-11-13 14:32:29 +00:00
Edward Betts 7a08c4b56d Adjust size of map on trip page to avoid scrollbar. 2024-11-13 14:32:00 +00:00
Edward Betts 42066f9dde Refactor 2024-11-13 14:31:35 +00:00
Edward Betts 1caf233075 Show airline counts on trip stats page 2024-11-10 21:02:37 +00:00
Edward Betts 6d1b01485a Check for unknown currencies during validation 2024-11-04 10:23:21 +00:00
Edward Betts 67b1adf956 More support for offline_mode 2024-11-04 09:59:55 +00:00
Edward Betts 3c3939c525 Not all stations have UIC, use name instead 2024-10-31 11:29:08 +01:00
Edward Betts eaa6369dc9 Add offline mode 2024-10-31 11:13:55 +01:00
Edward Betts 9f1f64708f Remove old unused code. 2024-10-31 08:27:40 +00:00
Edward Betts 1ce82858ae Avoid empty 'Past' seciton on conference page 2024-10-31 08:26:10 +00:00
Edward Betts 6333587cc2 Add hover text for country flags on space launch page
Closes: #174
2024-10-23 07:10:31 +01:00
Edward Betts 38792a1721 Enhance YAML validation 🛠️: Add airline checks
Closes: #186
2024-10-22 21:19:11 +01:00
Edward Betts aec1d0e140 Tidy accommodation validation 2024-10-22 18:55:57 +01:00
Edward Betts ef624f83dd Enhance conference validation and add MAX_CONF_DAYS
- Add checks for conference start and end dates.
- Set maximum conference duration to 20 days.

Closes: #182
2024-10-21 10:39:49 +01:00
Edward Betts 34d1ee3b30 Add photo links to trip and day summaries
Enhance trip UI by adding photo links for authenticated
users. This provides quick access to relevant trip photos.
Closes: #184
2024-10-21 10:20:09 +01:00
Edward Betts 662808b545 Restore trip stats link in trip list 2024-10-21 09:52:21 +01:00
Edward Betts 3c0694de19 🇬🇧 Hide UK flags for all UK trips with show_flags logic 🏴
Implement show_flags property to conditionally display country flags for international trips. Remove unnecessary UK flags on purely UK-based trips. Closes: #183

🔧 Updated templates to use show_flags property.
📝 Adjusted map and trip details to reflect flag changes.
2024-10-19 19:43:48 +01:00
Edward Betts 9ad2ba9462 🔧 Fix: Correct date handling in Trip class
🗓️ Utilize utils.as_date for date conversions in travel checks.

Closes: #181
2024-10-17 12:56:25 +01:00
Edward Betts a1cdf62eef Bug fix trip stats page 2024-10-16 06:36:26 +01:00
Edward Betts 81b0234794 Add map size toggle button to trip list page 2024-10-13 10:39:28 +01:00
Edward Betts 7587c3d3b7 Add map size toggle button to trip page
Closes: #178
2024-10-13 10:12:39 +01:00
Edward Betts aad968a174 Unbooked flight great circle goes to airport (Closes: #179) 2024-10-13 09:39:02 +01:00
Edward Betts 5f13bff9bd Better space launch change email 2024-10-12 14:00:58 +01:00
Edward Betts 237db73b5d No need for the UnknownStation exception 2024-10-02 15:39:22 +01:00
Edward Betts 868c1407b5 Use pattern matching: train/flight/ferry 2024-10-02 15:36:26 +01:00
Edward Betts 7d803e0267 Refactor 2024-10-02 14:12:34 +01:00
Edward Betts 0b23f71aa6 Refactor and add some docstrings. 2024-10-02 10:16:30 +01:00
Edward Betts 8cbfb745c4 Split code into new file stats.py 2024-10-02 09:09:39 +01:00
Edward Betts a324046332 Split 'class Event' into its own file 2024-10-01 11:13:39 +01:00