Changeset 1142:d9373f5599db
- Timestamp:
- 04/21/24 14:03:59 (8 months ago)
- Branch:
- python3
- Phase:
- public
- Location:
- src/mlx/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/flight.py
r1139 r1142 2678 2678 zfw += (self._numCabinCrew.get_int() - bookedFlight.dowNumCabinCrew) * \ 2679 2679 const.WEIGHT_CABIN_CREW 2680 zfw += self._numPassengers.get_int() * \ 2681 (const.WEIGHT_PASSENGER_CHARTER 2682 if bookedFlight.flightType==const.FLIGHTTYPE_CHARTER 2683 else const.WEIGHT_PASSENGER) 2680 zfw += self._numPassengers.get_int() * bookedFlight.passengerWeight 2684 2681 zfw += self._numChildren.get_int() * const.WEIGHT_CHILD 2685 2682 zfw += self._numInfants.get_int() * const.WEIGHT_INFANT -
src/mlx/gui/weighthelp.py
r1034 r1142 438 438 if self._flightType>=0 and self._pax>=0 and self._children>=0 and \ 439 439 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) + \ 444 441 self._children * const.WEIGHT_CHILD + \ 445 442 self._infants * const.WEIGHT_INFANT
Note:
See TracChangeset
for help on using the changeset viewer.