Show flight duration.

This commit is contained in:
Edward Betts 2023-09-28 22:33:31 +01:00
parent a2b30a9ac7
commit 5dd224f6e4

1
show
View file

@ -51,6 +51,7 @@ def format_row(dt: datetime, f: Flight) -> str:
return ( return (
("*" if delta == "today" else " ") ("*" if delta == "today" else " ")
+ f' {d} {delta:>13s} {f["From"]:4s} -> {f["To"]:4s} ' + f' {d} {delta:>13s} {f["From"]:4s} -> {f["To"]:4s} '
+ f'{f["Duration"]} '
+ f'{airline:>15s} {flight_number:<7s} {f["Class"]} ' + f'{airline:>15s} {flight_number:<7s} {f["Class"]} '
+ f'{f["Seat"]:>4s} ' + f'{f["Seat"]:>4s} '
+ f'{f["Registration"]:6s} ' + f'{f["Registration"]:6s} '