Bladeren bron

extend the interface to provide all available runways

Sven Czarnian 3 jaren geleden
bovenliggende
commit
9627ae34b7
1 gewijzigde bestanden met toevoegingen van 6 en 0 verwijderingen
  1. 6 0
      aman/app.py

+ 6 - 0
aman/app.py

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