Ignore:
Timestamp:
04/17/17 07:06:24 (7 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

The flown distance is serialized with 2 decimal places

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/pirep.py

    r838 r839  
    373373        attrs["ratingText"] = self.getRatingText()
    374374        attrs["rating"] = max(0.0, self.rating)
    375         attrs["flownDistance"] = self.flownDistance
     375        attrs["flownDistance"] = "%.2f" % (self.flownDistance,)
    376376        # FIXME: it should be stored in the PIREP when it is sent later
    377377        attrs["performDate"] = datetime.date.today().strftime("%Y-%m-%d")
Note: See TracChangeset for help on using the changeset viewer.