fixing conditional logic
This commit is contained in:
parent
d6bb192163
commit
689251c1b8
|
|
@ -196,8 +196,8 @@ try:
|
||||||
plane = planes[icao]
|
plane = planes[icao]
|
||||||
plane_info = pull_rpdadsbx(icao)
|
plane_info = pull_rpdadsbx(icao)
|
||||||
if plane_info:
|
if plane_info:
|
||||||
data_indexed[icao.upper()] = plane_info['ac'][0]
|
if plane_info['ac']:
|
||||||
if data_indexed[icao.upper()]:
|
data_indexed[icao.upper()] = plane_info['ac'][0]
|
||||||
plane.run_adsbx_v2(data_indexed[icao.upper()])
|
plane.run_adsbx_v2(data_indexed[icao.upper()])
|
||||||
else:
|
else:
|
||||||
plane.run_empty()
|
plane.run_empty()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue