code refactoring
Cette révision appartient à :
@@ -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
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur