Changeset 104:7f6da8639aca for src/mlx
- Timestamp:
- 04/22/12 07:42:42 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/web.py
r97 r104 547 547 data["flightdefect"] = SendPIREP._latin2Encoder(pirep.flightDefects)[0] 548 548 data["kritika"] = pirep.getRatingText() 549 data["flight Rating"] = "%.1f" % (max(0.0, pirep.rating),)549 data["flightrating"] = "%.1f" % (max(0.0, pirep.rating),) 550 550 data["distance"] = "%.3f" % (pirep.flownDistance,) 551 551 data["insdate"] = datetime.date.today().strftime("%Y-%m-%d")
Note:
See TracChangeset
for help on using the changeset viewer.