Fixes issue #203

Conditional in comprehension appears to be intended to exclude
dunders, but was also excluding many TER weapons from Weapon class args
beginning with '_'
This commit is contained in:
Walter 2020-10-22 16:28:38 -05:00
parent cc61893bca
commit 9caf83cda9

View File

@ -11,7 +11,7 @@ class QPylonEditor(QComboBox):
self.pylon_number = pylon_number
self.flight = flight
self.possible_loadout = [i for i in self.pylon.__dict__.keys() if i[:1] != '_']
self.possible_loadout = [i for i in self.pylon.__dict__.keys() if i[:2] != '__']
if not str(self.pylon_number) in self.flight.loadout.keys():
self.flight.loadout[str(self.pylon_number)] = ""