From d2cdaa820ab1d5779fb83e713ec62ded7a37ca27 Mon Sep 17 00:00:00 2001 From: W1CDN Date: Sun, 9 Jul 2023 22:17:50 -0500 Subject: [PATCH] Undo relative URL for now. --- api_app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api_app.py b/api_app.py index 7f64f08..bae32f5 100644 --- a/api_app.py +++ b/api_app.py @@ -123,8 +123,8 @@ def index(): # Play with function to create station list #stations = select_all_stations(get_db_connection()) #print(url_for("static", filename="test.txt", _external=True)) - stations = json.loads(requests.get(url_for("stations", _external=True)).text)['data'] - #stations = json.loads(requests.get("https://digi.w1cdn.net/aprs_api/stations").text)['data'] + # this should work: stations = json.loads(requests.get(url_for("stations", _external=True)).text)['data'] + stations = json.loads(requests.get("https://digi.w1cdn.net/aprs_api/stations").text)['data'] # Convert unix time to datetime on the fly because I'm lazy right now for station in stations: if station['last_heard_unix'] != None: