Fix departure time in the kneeboard.

We don't have the departure time set until after we create the initial
FlightData object. Populate the value after it is determined.

Fixes https://github.com/Khopa/dcs_liberation/issues/290
This commit is contained in:
Dan Albert
2020-11-01 13:23:13 -08:00
parent 5ba633c8a1
commit eff9c77c9a
3 changed files with 10 additions and 11 deletions

View File

@@ -25,7 +25,7 @@ Planned ally flights:
{{ dep }}
---------------------------------------------------
{% for flight in allied_flights_by_departure[dep] %}
{{ flight.flight_type.name }} {{ flight.units[0].type }} x {{flight.size}}, departing in {{ flight.departure_delay_delta }}, {{ flight.package.target.name}}{% endfor %}
{{ flight.flight_type.name }} {{ flight.units[0].type }} x {{flight.size}}, departing in {{ flight.departure_delay }}, {{ flight.package.target.name}}{% endfor %}
{% endfor %}
Carriers and FARPs:
@@ -42,7 +42,7 @@ AWACS:
{% for i in awacs %}{{ i.callsign }} -- Freq : {{i.freq.mhz}}
{% endfor %}
JTACS [F-10 Menu] :
JTACS [F-10 Menu] :
====================
{% for jtac in jtacs %}Frontline {{ jtac.region }} -- Code : {{ jtac.code }}
{% endfor %}