Ignore:
Timestamp:
04/21/24 14:03:59 (2 weeks ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

The new adult passenger weight query functions are used (re #386).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/weighthelp.py

    r1034 r1142  
    438438        if self._flightType>=0 and self._pax>=0 and self._children>=0 and \
    439439           self._infants>=0:
    440             return self._pax * \
    441                 (const.WEIGHT_PASSENGER_CHARTER
    442                  if self._flightType==const.FLIGHTTYPE_CHARTER
    443                  else const.WEIGHT_PASSENGER) + \
     440            return self._pax * const.getPassengerWeight(self._flightType) + \
    444441                self._children * const.WEIGHT_CHILD + \
    445442                self._infants * const.WEIGHT_INFANT
Note: See TracChangeset for help on using the changeset viewer.