linting
This commit is contained in:
parent
8054a6c637
commit
f4643d341d
|
@ -10,8 +10,8 @@ airport = config.AIRPORT
|
||||||
payload = {'max_pages': 2}
|
payload = {'max_pages': 2}
|
||||||
auth_header = {'x-apikey': config.FLIGHTAWAREKEY}
|
auth_header = {'x-apikey': config.FLIGHTAWAREKEY}
|
||||||
|
|
||||||
response = requests.get(apiUrl + f"airports/{airport}/flights/scheduled_departures",
|
response = requests.get(apiUrl + f"airports/{airport}/flights/scheduled_departures", params=payload,
|
||||||
params=payload, headers=auth_header)
|
headers=auth_header)
|
||||||
print("Flight Operator Time Destination acft-type")
|
print("Flight Operator Time Destination acft-type")
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
departures = response.json()["scheduled_departures"]
|
departures = response.json()["scheduled_departures"]
|
||||||
|
@ -33,8 +33,6 @@ if response.status_code == 200:
|
||||||
if flight["aircraft_type"] is not None:
|
if flight["aircraft_type"] is not None:
|
||||||
acfttype = flight["aircraft_type"]
|
acfttype = flight["aircraft_type"]
|
||||||
|
|
||||||
|
|
||||||
print(name + " " + operator + " " + scheduled_off + " " + destination + " " + acfttype)
|
print(name + " " + operator + " " + scheduled_off + " " + destination + " " + acfttype)
|
||||||
else:
|
else:
|
||||||
print("Error executing request")
|
print("Error executing request")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue