Show flights without CO2 info.

This commit is contained in:
Edward Betts 2025-03-17 07:22:56 +00:00
parent ee1eaa1046
commit 9bc0f97976

View file

@ -59,6 +59,9 @@ def check_flights(airlines: set[str]) -> None:
co2_flight_count += len(
[flight for flight in booking["flights"] if "co2_kg" in flight]
)
for flight in booking["flights"]:
if "co2_kg" not in flight:
pprint(booking)
check_currency(booking)
if prev_first_depart: