extend the interface to provide all available runways
This commit is contained in:
@@ -100,9 +100,15 @@ def configuration(icao):
|
||||
if False == found:
|
||||
dependencies.append(cand1)
|
||||
|
||||
runways = airport.Configuration.GngData.Runways[airport.Icao];
|
||||
availableRunways = [];
|
||||
for runway in runways:
|
||||
availableRunways.append(runway.Name);
|
||||
|
||||
dictionary = {
|
||||
'airport' : airport.Icao,
|
||||
'useShallShouldMay' : config.UseShallShouldMay,
|
||||
'availableRunways' : availableRunways,
|
||||
'activeRunways' : config.ActiveArrivalRunways,
|
||||
'dependentRunways' : dependencies
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user