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