Browse Source

don't uppercase password

fixes Jxck-S/plane-notify#87
pull/92/head
Mark Bumiller 2 years ago
parent
commit
4da00ced5f
  1. 2
      defOpenSky.py

2
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():

Loading…
Cancel
Save