code refactoring

This commit is contained in:
Sven Czarnian
2021-10-12 22:26:40 +02:00
parent e02f429364
commit c07e767ef8

View File

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