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

Updated the flight type handling (re #357)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/const.py

    r1033 r1034  
    300300FLIGHTTYPE_SCHEDULED = 0
    301301
    302 ## Flight type: old-timer
    303 FLIGHTTYPE_OLDTIMER = 1
    304 
    305302## Flight type: VIP
    306 FLIGHTTYPE_VIP = 2
     303FLIGHTTYPE_VIP = 1
    307304
    308305## Flight type: charter
    309 FLIGHTTYPE_CHARTER = 3
     306FLIGHTTYPE_CHARTER = 2
     307
     308## Flight type: old timer (not used anymore)
     309FLIGHTTYPE_OLDTIMER = -1
    310310
    311311#-------------------------------------------------------------------------------
    312312
    313313flightTypes = [ FLIGHTTYPE_SCHEDULED,
    314                 FLIGHTTYPE_OLDTIMER,
    315314                FLIGHTTYPE_VIP,
    316                 FLIGHTTYPE_CHARTER ]
     315                FLIGHTTYPE_CHARTER,
     316                FLIGHTTYPE_OLDTIMER ]
    317317
    318318#-------------------------------------------------------------------------------
    319319
    320320_flightTypeStrings = { FLIGHTTYPE_SCHEDULED : "scheduled",
    321                        FLIGHTTYPE_OLDTIMER : "ot",
    322321                       FLIGHTTYPE_VIP : "vip",
    323                        FLIGHTTYPE_CHARTER : "charter" }
     322                       FLIGHTTYPE_CHARTER : "charter",
     323                       FLIGHTTYPE_OLDTIMER : "ot" }
    324324
    325325def flightType2string(flightType):
Note: See TracChangeset for help on using the changeset viewer.