- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/pirep.py
r437 r401 19 19 class PIREP(object): 20 20 """A pilot's report of a flight.""" 21 delayCodeNames = { const.DELAYCODE_LOADING : "Loading Problems", 22 const.DELAYCODE_NETWORK : "Net Problems", 23 const.DELAYCODE_SYSTEM : "System Crash/Freezing", 24 const.DELAYCODE_TRAFFIC : "Traffic Problems", 25 const.DELAYCODE_WEATHER : "Weather Problems", 26 const.DELAYCODE_VATSIM : "VATSIM Problem", 27 const.DELAYCODE_CONTROLLER : "Controller's Fault", 28 const.DELAYCODE_NAVIGATION : "Navigation Problem", 29 const.DELAYCODE_APRON : "Apron Navigation Problems", 30 const.DELAYCODE_PERSONAL : "Personal Reasons" } 31 21 32 @staticmethod 22 33 def _formatLine(timeStr, line): … … 129 140 for code in self.delayCodes: 130 141 if s: s += ", " 131 s += code142 s += PIREP.delayCodeNames[code] 132 143 return s 133 144
Note:
See TracChangeset
for help on using the changeset viewer.