code refactoring

Cette révision appartient à :
Sven Czarnian
2021-10-12 22:26:40 +02:00
Parent e02f429364
révision c07e767ef8

Voir le fichier

@@ -8,7 +8,7 @@ class AircraftPerformance:
def __init__(self, filepath : str):
config = configparser.ConfigParser()
config.read(filepath)
self.aircrafts = { }
self.Aircrafts = { }
# iterate over all entries
for key in config:
@@ -25,4 +25,4 @@ class AircraftPerformance:
aircraft.rodBelowFL100 = config[key]['rodbelowfl100']
aircraft.speedApproach = config[key]['speedapproach']
self.aircrafts[aircraft.icao] = aircraft
self.Aircrafts[aircraft.icao] = aircraft