store the WTC in the inbound itself

This commit is contained in:
Sven Czarnian
2021-10-18 12:42:31 +02:00
parent 12d77d0e71
commit d191da2303

View File

@@ -37,6 +37,12 @@ class Inbound:
self.PlannedRunway = None self.PlannedRunway = None
self.PlannedStar = None self.PlannedStar = None
self.ArrivalCandidates = {} self.ArrivalCandidates = {}
self.WTC = None
# analyze the WTC
wtc = report.aircraft.wtc.upper()
if 'L' == wtc or 'M' == wtc or 'H' == wtc or 'J' == wtc:
self.WTC = wtc
# search performance data -> fallback to A320 # search performance data -> fallback to A320
if self.Report.aircraft.type in performanceData.Aircrafts: if self.Report.aircraft.type in performanceData.Aircrafts: