Changeset 834:5651e303daa9 for src/mlx/pirep.py
- Timestamp:
- 04/17/17 06:47:25 (7 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/pirep.py
r833 r834 202 202 self.delayCodes = pirepData["timeComment"] 203 203 if self.delayCodes=="UTC": 204 self.delayCodes = [] 205 else: 206 self.delayCodes = self.delayCodes.split(", ") 204 self.delayCodes = "" 207 205 208 206 flightDate = pirepData["flightDate"] + " " … … 373 371 attrs["ratingText"] = self.getRatingText() 374 372 attrs["rating"] = max(0.0, self.rating) 375 attrs["flownDistance"] = "%.2f" % (self.flownDistance,)373 attrs["flownDistance"] = self.flownDistance 376 374 # FIXME: it should be stored in the PIREP when it is sent later 377 375 attrs["performDate"] = datetime.date.today().strftime("%Y-%m-%d")
Note:
See TracChangeset
for help on using the changeset viewer.