Changeset 1049:6455f47f42a0 for src


Ignore:
Timestamp:
04/08/22 18:35:01 (3 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

The total number of passengers is passed to the online ACARS (re #357)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/acars.py

    r919 r1049  
    5858        attrs["latitude"] = state.latitude
    5959        attrs["pilotName"] = self.pilotName
    60         attrs["numPassengers"] = bookedFlight.numPassengers
     60        attrs["numPassengers"] = \
     61            bookedFlight.numPassengers + \
     62            bookedFlight.numChildren + \
     63            bookedFlight.numInfants
    6164        attrs["blockTime"] = self.getBlockTimeText()
    6265        attrs["callsign"] = bookedFlight.callsign
Note: See TracChangeset for help on using the changeset viewer.