From 33af46178a24012124e157a1f7ba732823a0733a Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sat, 20 Jul 2024 09:21:29 -0700 Subject: [PATCH] Update locationdata.py --- modules/locationdata.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/locationdata.py b/modules/locationdata.py index 11bbf87..7a5aa5c 100644 --- a/modules/locationdata.py +++ b/modules/locationdata.py @@ -44,14 +44,13 @@ def get_tide(lat=0, lon=0): station_json = station_data.json() else: return ERROR_FETCHING_DATA + station_id = station_json['stationList'][0]['stationId'] except (requests.exceptions.RequestException, json.JSONDecodeError): return ERROR_FETCHING_DATA if station_id is None: return "no station found" - station_id = station_json['stationList'][0]['stationId'] - station_url = "https://tidesandcurrents.noaa.gov/noaatidepredictions.html?id=" + station_id try: