I'm the worst

This commit is contained in:
Nick Foster 2015-05-08 09:08:38 -07:00
parent d569e31a68
commit 93078a8cae

View File

@ -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 map(self._aircraft_id_map).iteritems(): for icao, _id in dict(self._aircraft_id_map).iteritems():
if _id < minimum: if _id < minimum:
del self._aircraft_id_map[icao] del self._aircraft_id_map[icao]