Changeset 856:215eccff5185
- Timestamp:
- 05/21/17 18:13:33 (8 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/pirep.py
r855 r856 68 68 if s==text: 69 69 return flighType 70 return const.FLIGHT YPE_SCHEDULED70 return const.FLIGHTTYPE_SCHEDULED 71 71 72 72 @staticmethod … … 188 188 self.mailWeight = int(pirepData["mailWeight"]) 189 189 190 self.filedCruiseAltitude = int(pirepData["filedCruiseLevel"][2:])*100 190 filedCruiseLevel = pirepData["filedCruiseLevel"].strip() 191 if filedCruiseLevel: 192 if filedCruiseLevel.startswith("FL"): 193 filedCruiseLevel = filedCruiseLevel[2:] 194 if filedCruiseLevel: 195 self.filedCruiseAltitude = int(filedCruiseLevel)*100 196 else: 197 self.filedCruiseAltitude = 10000; 198 191 199 cruiseLevel = pirepData["cruiseLevel"].strip() 192 200 if cruiseLevel:
Note:
See TracChangeset
for help on using the changeset viewer.