Clean up remaining Flight.from_cp users.

The preferred API for this has been `Flight.departure` for a while.
This commit is contained in:
Dan Albert
2023-06-29 20:24:24 -07:00
committed by Raffson
parent 5e858731d2
commit f89ac52bf3
9 changed files with 8 additions and 12 deletions

View File

@@ -145,7 +145,7 @@ class PackageModel(QAbstractListModel):
delay = datetime.timedelta(
seconds=int(flight.flight_plan.startup_time().total_seconds())
)
origin = flight.from_cp.name
origin = flight.departure.name
return f"{flight} from {origin} in {delay}"
@staticmethod