From 4da00ced5f7a7684fe45f0403e041d86b1a16021 Mon Sep 17 00:00:00 2001 From: Mark Bumiller Date: Thu, 15 Dec 2022 15:02:28 -0500 Subject: [PATCH 1/2] don't uppercase password fixes Jxck-S/plane-notify#87 --- defOpenSky.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defOpenSky.py b/defOpenSky.py index 7b84e8b..61503a4 100644 --- a/defOpenSky.py +++ b/defOpenSky.py @@ -4,7 +4,7 @@ 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').upper()) + 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(): From 133fa18920c50d075f4366e9462b53600186be32 Mon Sep 17 00:00:00 2001 From: Mark Bumiller Date: Thu, 15 Dec 2022 15:06:08 -0500 Subject: [PATCH 2/2] format fixes --- defOpenSky.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/defOpenSky.py b/defOpenSky.py index 61503a4..551e164 100644 --- a/defOpenSky.py +++ b/defOpenSky.py @@ -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():