Changeset 778:102c31aa3d55
- Timestamp:
- 05/22/16 06:23:40 (9 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/pirep.py
r743 r778 104 104 105 105 @property 106 def flightDateText(self): 107 """Get the text version of the booked flight's departure time.""" 108 return self.bookedFlight.departureTime.strftime("%Y-%m-%d") 109 110 @property 106 111 def flightTypeText(self): 107 112 """Get the text representation of the flight type.""" … … 194 199 attrs = {} 195 200 attrs["log"] = self.getACARSText() 201 attrs["flightDate"] = self.flightDateText 202 attrs["callsign"] = self.bookedFlight.callsign 203 attrs["departureICAO"] = self.bookedFlight.departureICAO 204 attrs["arrivalICAO"] = self.bookedFlight.arrivalICAO 196 205 attrs["numPassengers"] = self.numPassengers 197 206 attrs["numCrew"] = self.numCrew … … 223 232 attrs["flownDistance"] = self.flownDistance 224 233 # FIXME: it should be stored in the PIREP when it is sent later 225 attrs[" flightDate"] = datetime.date.today().strftime("%Y-%m-%d")234 attrs["performDate"] = datetime.date.today().strftime("%Y-%m-%d") 226 235 227 236 return ([], attrs)
Note:
See TracChangeset
for help on using the changeset viewer.