agenda/agenda
Edward Betts c6d39ace60 Trip: fix total_distance undercount
Previously Trip.total_distance returned None if any travel leg lacked a
distance, which led to undercounted trip stats (less than flight + train
totals).

Now it accumulates only distances that are present and ignores
missing/falsy values.  The method returns a float and yields 0.0 when no
distances are available.  Docstring updated accordingly.

Fixes #185
2025-08-30 20:46:03 +01:00
..
__init__.py Code formatting with black 2025-07-18 09:47:02 +02:00
accommodation.py Split 'class Event' into its own file 2024-10-01 11:13:39 +01:00
airbnb.py Update airbnb parse previous airbnb stays. 2025-07-18 11:08:34 +02:00
birthday.py Split 'class Event' into its own file 2024-10-01 11:13:39 +01:00
bristol_waste.py More support for offline_mode 2024-11-04 09:59:55 +00:00
busy.py Refactor get_location_for_date to use trip data directly 2025-07-16 12:08:19 +02:00
calendar.py Fix single day events showing as two days on calendar 2025-07-24 23:35:01 +01:00
carnival.py Split 'class Event' into its own file 2024-10-01 11:13:39 +01:00
conference.py Enhance conference validation and add MAX_CONF_DAYS 2024-10-21 10:39:49 +01:00
data.py More support for offline_mode 2024-11-04 09:59:55 +00:00
domains.py Split 'class Event' into its own file 2024-10-01 11:13:39 +01:00
economist.py Split 'class Event' into its own file 2024-10-01 11:13:39 +01:00
error_mail.py Send error mail to admin 2023-12-07 17:15:58 +00:00
event.py Split 'class Event' into its own file 2024-10-01 11:13:39 +01:00
events_yaml.py Split 'class Event' into its own file 2024-10-01 11:13:39 +01:00
fx.py Handle FX rate timeouts. 2025-02-18 00:46:36 +00:00
gandi.py Split 'class Event' into its own file 2024-10-01 11:13:39 +01:00
geomob.py Add comprehensive tests and fix geomob URL bug 2025-07-20 01:31:19 +02:00
gwr.py Add offline mode 2024-10-31 11:13:55 +01:00
hn.py Split 'class Event' into its own file 2024-10-01 11:13:39 +01:00
holidays.py Sweden has every Sunday as a holiday. 2025-02-12 08:52:18 -05:00
mail.py Move send_mail() to own module 2024-07-08 10:44:39 +01:00
meetup.py Split 'class Event' into its own file 2024-10-01 11:13:39 +01:00
meteors.py Types 2025-08-01 06:21:22 +01:00
n_somerset_waste.py More support for offline_mode 2024-11-04 09:59:55 +00:00
py.typed Add py.typed 2023-11-05 12:17:01 +00:00
schengen.py Code formatting with black 2025-07-18 09:47:02 +02:00
spacexdata.py Initial commit 2023-10-02 23:45:14 +01:00
stats.py Update trip statistics CO2 display with transport breakdown 2025-07-15 16:04:07 +02:00
stock_market.py Move timedelta_display() function to agenda.utils 2024-08-04 09:23:13 +02:00
subscription.py Split 'class Event' into its own file 2024-10-01 11:13:39 +01:00
sun.py tell mypy to ignore the lack of types for ephem module 2024-07-18 14:22:55 +09:00
thespacedevs.py Improve space launch email, add tests. 2025-08-12 12:13:27 +01:00
travel.py Prefer ICAO flight number for some airlines 2025-04-28 12:13:23 +03:00
trip.py New travel type: coach 2025-07-25 18:16:34 +01:00
trip_schengen.py Use get_country for Schengen report 2025-07-15 18:12:11 +02:00
types.py Trip: fix total_distance undercount 2025-08-30 20:46:03 +01:00
uk_holiday.py Refactor 2024-01-16 11:35:38 +00:00
utils.py Add comprehensive tests and fix geomob URL bug 2025-07-20 01:31:19 +02:00