Don't flag negative starts for active flights.

If the flight has already passed its start up time, this isn't a
negative start.
This commit is contained in:
Dan Albert 2023-08-13 12:31:54 -07:00
parent aaf66107ad
commit 2f385086fd

View File

@ -138,10 +138,11 @@ class QTopPanel(QFrame):
if not package.flights: if not package.flights:
continue continue
for flight in package.flights: for flight in package.flights:
startup = flight.flight_plan.startup_time() if flight.state.is_waiting_for_start:
if startup < now: startup = flight.flight_plan.startup_time()
packages.append(package) if startup < now:
break packages.append(package)
break
return packages return packages
@staticmethod @staticmethod