treating aircraft data as alist
This commit is contained in:
parent
4d44d58306
commit
d6bb192163
|
|
@ -195,8 +195,8 @@ try:
|
||||||
for icao in planes:
|
for icao in planes:
|
||||||
plane = planes[icao]
|
plane = planes[icao]
|
||||||
plane_info = pull_rpdadsbx(icao)
|
plane_info = pull_rpdadsbx(icao)
|
||||||
if plane_info is not None:
|
if plane_info:
|
||||||
data_indexed[icao.upper()] = plane_info['ac']
|
data_indexed[icao.upper()] = plane_info['ac'][0]
|
||||||
if data_indexed[icao.upper()]:
|
if data_indexed[icao.upper()]:
|
||||||
plane.run_adsbx_v2(data_indexed[icao.upper()])
|
plane.run_adsbx_v2(data_indexed[icao.upper()])
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue