Changeset 1033:330058d37574 for src/mlx/rpc.py
- Timestamp:
- 03/14/22 08:46:34 (2 years ago)
- Branch:
- python3
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/rpc.py
r1032 r1033 276 276 STATUS_REJECTED = 4 277 277 278 # Flight type: scheduled 279 FLIGHT_TYPE_SCHEDULED = 0 280 281 # Flight type: VIP 282 FLIGHT_TYPE_VIP = 1 283 284 # Flight type: charter 285 FLIGHT_TYPE_CHARTER = 2 286 278 287 # The instructions for the construction 279 288 _instructions = { 280 289 "numPassengers" : int, 281 "numCrew" : int, 290 "numChildren" : int, 291 "numInfants" : int, 292 "numCabinCrew" : int, 293 "dowNumCabinCrew" : int, 294 "numCockpitCrew" : int, 282 295 "bagWeight" : int, 283 296 "cargoWeight" : int, 284 297 "mailWeight" : int, 298 "flightType" : int, 299 "dow": int, 300 "maxPassengers": int, 285 301 "aircraftType" : lambda value: BookedFlight._decodeAircraftType(value), 286 302 "status" : lambda value: BookedFlight._decodeStatus(value) … … 342 358 "bookedFlight" : lambda value: BookedFlight(value), 343 359 "numPassengers" : int, 360 "numChildren" : int, 361 "numInfants" : int, 344 362 "fuelUsed" : int, 345 363 "rating" : lambda value: float(value) if value else 0.0 … … 358 376 if self.flightTimeEnd<self.flightTimeStart: 359 377 self.flightTimeEnd += 24*60*60 378 379 self.totalNumPassengers = self.numPassengers + self.numChildren + self.numInfants 360 380 361 381 #---------------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.