Changeset 1127:b9c7af542746 for src/mlx


Ignore:
Timestamp:
02/10/24 09:25:39 (10 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
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.