From 54949abf7da80e20cb7ad868ef4f7b2c68cbfc4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20S?= <89701934+JuanJS01@users.noreply.github.com> Date: Sun, 17 Nov 2024 21:16:01 -0300 Subject: [PATCH] GUI Added --- Scripts/NIC_Functions/Select_Out_NOTAMs.py | 2 +- Scripts/NIC_Functions/Update_Active_NOTAMs.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/NIC_Functions/Select_Out_NOTAMs.py b/Scripts/NIC_Functions/Select_Out_NOTAMs.py index 3260788..876b096 100644 --- a/Scripts/NIC_Functions/Select_Out_NOTAMs.py +++ b/Scripts/NIC_Functions/Select_Out_NOTAMs.py @@ -85,7 +85,7 @@ def fetch_notams(lta_codes): polygon = "" resource_dir = os.path.join(os.path.dirname(__file__), '../Resources') if location in AIRPORTS or location in CENTER: - if location in ['SKEC', 'SKED']: + if location in CENTER: print(f"Fetching polygon for {location} from file.") polygon = get_polygon_from_center_file(location, resource_dir) else: diff --git a/Scripts/NIC_Functions/Update_Active_NOTAMs.py b/Scripts/NIC_Functions/Update_Active_NOTAMs.py index 1e836aa..75a24e6 100644 --- a/Scripts/NIC_Functions/Update_Active_NOTAMs.py +++ b/Scripts/NIC_Functions/Update_Active_NOTAMs.py @@ -2,8 +2,8 @@ import requests # Your client ID and secret -CLIENT_ID = '7caab856-751b-40d7-ba13-e43da92c5003' -CLIENT_SECRET = 'X8NVLruCcNIIGXmFyqgzSwAMiZex3mof' +CLIENT_ID = 'xxx' +CLIENT_SECRET = 'xxx' # The token endpoint for OAuth2 authentication TOKEN_URL = 'https://api.ivao.aero/oauth/token'