Fix enumeration in SBS1 list pruning.
This commit is contained in:
parent
42bf16ffc4
commit
cc0fa1801b
@ -83,7 +83,7 @@ class output_sbs1:
|
|||||||
# dictionary is getting too large.
|
# dictionary is getting too large.
|
||||||
if len(self._aircraft_id_map) > 1e4:
|
if len(self._aircraft_id_map) > 1e4:
|
||||||
minimum = min(self._aircraft_id_map.values()) + (len(self._aircraft_id_map) - 1e4)
|
minimum = min(self._aircraft_id_map.values()) + (len(self._aircraft_id_map) - 1e4)
|
||||||
for icao, _id in self._aircraft_id_map:
|
for icao, _id in self._aircraft_id_map.iteritems():
|
||||||
if _id < minimum:
|
if _id < minimum:
|
||||||
del self._aircraft_id_map[icao]
|
del self._aircraft_id_map[icao]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user