Ignore:
Timestamp:
03/14/22 08:45:50 (2 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

Updated aircraft type constants (re #357).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/web.py

    r963 r1032  
    5858class BookedFlight(object):
    5959    """A flight that was booked."""
    60     TYPECODE2TYPE = { "736"  : const.AIRCRAFT_B736,
    61                       "73G"  : const.AIRCRAFT_B737,
    62                       "738"  : const.AIRCRAFT_B738,
    63                       "73H"  : const.AIRCRAFT_B738C,
    64                       "732"  : const.AIRCRAFT_B732,
    65                       "733"  : const.AIRCRAFT_B733,
    66                       "734"  : const.AIRCRAFT_B734,
    67                       "735"  : const.AIRCRAFT_B735,
    68                       "DH4"  : const.AIRCRAFT_DH8D,
    69                       "762"  : const.AIRCRAFT_B762,
    70                       "763"  : const.AIRCRAFT_B763,
    71                       "CR2"  : const.AIRCRAFT_CRJ2,
     60    TYPECODE2TYPE = { "B736"  : const.AIRCRAFT_B736,
     61                      "B737"  : const.AIRCRAFT_B737,
     62                      "B738"  : const.AIRCRAFT_B738,
     63                      "B73H"  : const.AIRCRAFT_B738C,
     64                      "B732"  : const.AIRCRAFT_B732,
     65                      "B733"  : const.AIRCRAFT_B733,
     66                      "B734"  : const.AIRCRAFT_B734,
     67                      "B735"  : const.AIRCRAFT_B735,
     68                      "DH8D"  : const.AIRCRAFT_DH8D,
     69                      "B762"  : const.AIRCRAFT_B762,
     70                      "B763"  : const.AIRCRAFT_B763,
     71                      "CRJ2"  : const.AIRCRAFT_CRJ2,
    7272                      "F70"  : const.AIRCRAFT_F70,
    7373                      "LI2"  : const.AIRCRAFT_DC3,
    74                       "TU3"  : const.AIRCRAFT_T134,
    75                       "TU5"  : const.AIRCRAFT_T154,
    76                       "YK4"  : const.AIRCRAFT_YK40,
    77                       "146"  : const.AIRCRAFT_B462 }
    78 
    79     TYPE2TYPECODE = { const.AIRCRAFT_B736  : "736",
    80                       const.AIRCRAFT_B737  : "73G",
    81                       const.AIRCRAFT_B738  : "738",
    82                       const.AIRCRAFT_B738C : "73H",
    83                       const.AIRCRAFT_B732  : "732",
    84                       const.AIRCRAFT_B733  : "733",
    85                       const.AIRCRAFT_B734  : "734",
    86                       const.AIRCRAFT_B735  : "735",
    87                       const.AIRCRAFT_DH8D  : "DH4",
    88                       const.AIRCRAFT_B762  : "762",
    89                       const.AIRCRAFT_B763  : "763",
    90                       const.AIRCRAFT_CRJ2  : "CR2",
     74                      "T134"  : const.AIRCRAFT_T134,
     75                      "T154"  : const.AIRCRAFT_T154,
     76                      "YK40"  : const.AIRCRAFT_YK40,
     77                      "B462"  : const.AIRCRAFT_B462,
     78                      "IL62"  : const.AIRCRAFT_IL62 }
     79
     80    TYPE2TYPECODE = { const.AIRCRAFT_B736  : "B736",
     81                      const.AIRCRAFT_B737  : "B737",
     82                      const.AIRCRAFT_B738  : "B738",
     83                      const.AIRCRAFT_B738C : "B73H",
     84                      const.AIRCRAFT_B732  : "B732",
     85                      const.AIRCRAFT_B733  : "B733",
     86                      const.AIRCRAFT_B734  : "B734",
     87                      const.AIRCRAFT_B735  : "B735",
     88                      const.AIRCRAFT_DH8D  : "DH8D",
     89                      const.AIRCRAFT_B762  : "B762",
     90                      const.AIRCRAFT_B763  : "B763",
     91                      const.AIRCRAFT_CRJ2  : "CRJ2",
    9192                      const.AIRCRAFT_F70   : "F70",
    9293                      const.AIRCRAFT_DC3   : "LI2",
    93                       const.AIRCRAFT_T134  : "TU3",
    94                       const.AIRCRAFT_T154  : "TU5",
    95                       const.AIRCRAFT_YK40  : "YK4",
    96                       const.AIRCRAFT_B462  : "146" }
     94                      const.AIRCRAFT_T134  : "T134",
     95                      const.AIRCRAFT_T154  : "T155",
     96                      const.AIRCRAFT_YK40  : "YK40",
     97                      const.AIRCRAFT_B462  : "B462",
     98                      const.AIRCRAFT_IL62  : "IL62" }
    9799
    98100    checkFlightTypes = [ const.AIRCRAFT_B736, const.AIRCRAFT_B737,
Note: See TracChangeset for help on using the changeset viewer.