Changeset 743:6bc880ac41eb for src/mlx/web.py
- Timestamp:
- 01/02/16 12:27:19 (8 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/web.py
r742 r743 844 844 class SendPIREP(Request): 845 845 """A request to send a PIREP to the MAVA website.""" 846 _flightTypes = { const.FLIGHTTYPE_SCHEDULED : "SCHEDULED",847 const.FLIGHTTYPE_OLDTIMER : "OT",848 const.FLIGHTTYPE_VIP : "VIP",849 const.FLIGHTTYPE_CHARTER : "CHARTER" }850 851 846 _latin2Encoder = codecs.getencoder("iso-8859-2") 852 847 … … 877 872 data["mail"] = str(pirep.mailWeight) 878 873 879 data["flttype"] = SendPIREP._flightTypes[pirep.flightType]874 data["flttype"] = pirep.flightTypeText 880 875 data["onoff"] = "1" if pirep.online else "0" 881 876 data["bt_dep"] = util.getTimestampString(pirep.blockTimeStart)
Note:
See TracChangeset
for help on using the changeset viewer.