Changeset 325:8508cb0e7e98 for src


Ignore:
Timestamp:
10/21/12 05:12:00 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The welcome message now includes the town even if the airport is present (#134)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/airports.py

    r298 r325  
    7878    if icao in airportNames:
    7979        (town, airportName) = airportNames[icao]
    80         message += town if airportName is None else (airportName + " Airport")
     80        message += town if airportName is None \
     81                   else (town + " " + airportName + " Airport")
    8182    else:
    8283        message += icao
     
    9293    print getWelcomeMessage("LHDC")
    9394    print getWelcomeMessage("LIRN")
     95    print getWelcomeMessage("LHBP")
     96    print getWelcomeMessage("EDDF")
    9497
    9598#-----------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.