Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/pirep.py

    r856 r908  
    136136        self.bookedFlight = flight.bookedFlight
    137137
     138        self.numCockpitCrew = flight.numCockpitCrew
     139        self.numCabinCrew = flight.numCabinCrew
    138140        self.numCrew = flight.numCrew
    139141        self.numPassengers = flight.numPassengers
     
    182184        self.bookedFlight = bookedFlight
    183185
    184         self.numCrew = int(pirepData["numCrew"])
     186        self.numCockpitCrew = int(pirepData["numCockpitCrew"])
     187        self.numCabinCrew = int(pirepData["numCabinCrew"])
     188        self.numCrew = self.numCockpitCrew + self.numCabinCrew
    185189        self.numPassengers = int(pirepData["numPassengers"])
    186190        self.bagWeight = int(pirepData["bagWeight"])
     
    381385        attrs["arrivalICAO"] = self.bookedFlight.arrivalICAO
    382386        attrs["numPassengers"] = self.numPassengers
     387        attrs["numCockpitCrew"] = self.numCockpitCrew
     388        attrs["numCabinCrew"] = self.numCabinCrew
    383389        attrs["numCrew"] = self.numCrew
    384390        attrs["cargoWeight"] = self.cargoWeight
Note: See TracChangeset for help on using the changeset viewer.