extend the interface to provide all available runways

This commit is contained in:
Sven Czarnian
2021-12-09 09:18:20 +01:00
parent efae307e84
commit 9627ae34b7

View File

@@ -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
} }