format fixes

This commit is contained in:
Mark Bumiller 2022-12-15 15:06:08 -05:00
parent 4da00ced5f
commit 133fa18920
1 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,9 @@ def pull_opensky(planes):
main_config.read('./configs/mainconf.ini')
from opensky_api import OpenSkyApi
planeData = None
opens_api = OpenSkyApi(username= None if main_config.get('OPENSKY', 'USERNAME').upper() == "NONE" else main_config.get('OPENSKY', 'USERNAME'), password= None if main_config.get('OPENSKY', 'PASSWORD').upper() == "NONE" else main_config.get('OPENSKY', 'PASSWORD'))
opens_api = OpenSkyApi(
username= None if main_config.get('OPENSKY', 'USERNAME').upper() == "NONE" else main_config.get('OPENSKY', 'USERNAME'),
password= None if main_config.get('OPENSKY', 'PASSWORD').upper() == "NONE" else main_config.get('OPENSKY', 'PASSWORD'))
failed = False
icao_array = []
for key in planes.keys():