Changeset 1127:b9c7af542746


Ignore:
Timestamp:
02/10/24 09:25:39 (3 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

The number of people on board for the ACARS message is taken from the GUI (re #381)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/acars.py

    r1049 r1127  
    2020        self.pilotName = gui.loginResult.pilotName
    2121
     22        self._gui = gui
    2223        flight = gui.flight
    2324        aircraft = flight.aircraft
     
    5960        attrs["pilotName"] = self.pilotName
    6061        attrs["numPassengers"] = \
    61             bookedFlight.numPassengers + \
    62             bookedFlight.numChildren + \
    63             bookedFlight.numInfants
     62            self._gui.numPassengers + \
     63            self._gui.numChildren + \
     64            self._gui.numInfants
    6465        attrs["blockTime"] = self.getBlockTimeText()
    6566        attrs["callsign"] = bookedFlight.callsign
Note: See TracChangeset for help on using the changeset viewer.