Migration changes for using sets instead of lists

This commit is contained in:
Raffson
2023-07-09 21:35:37 +02:00
parent d6e7451f8a
commit 2b5f6f7998
2 changed files with 32 additions and 0 deletions

View File

@@ -178,6 +178,10 @@ class Faction:
@property
def aircrafts(self) -> list[UnitType[Any]]:
# Migrator can't cope with this, so we need to do it here...
self.aircraft = set(self.aircraft)
self.awacs = set(self.awacs)
self.tankers = set(self.tankers)
return list(self.aircraft.union(self.awacs.union(self.tankers)))
@classmethod