From bb0a9a4ef24d013feff8087745922dc0155a79b5 Mon Sep 17 00:00:00 2001 From: Mitchell Victoriano <47313912+MitchellAV@users.noreply.github.com> Date: Wed, 15 Nov 2023 21:50:38 -0800 Subject: [PATCH] Updated url for lambda function --- solardatatools/dataio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solardatatools/dataio.py b/solardatatools/dataio.py index 69ec0e35..95a0fb9f 100644 --- a/solardatatools/dataio.py +++ b/solardatatools/dataio.py @@ -468,7 +468,7 @@ def wrapper(*args, **kwargs): @timing(verbose) def query_redshift_w_api() -> pd.DataFrame: - url = "http://127.0.0.1:3000/redshift" + url = "https://lmojfukey3rylrbqughzlfu6ca0ujdby.lambda-url.us-west-1.on.aws/" payload = { "api_key": api_key, "siteid": siteid, @@ -488,7 +488,7 @@ def query_redshift_w_api() -> pd.DataFrame: if limit is None: payload.pop("limit") - response = requests.post(url, json=payload, timeout=60) + response = requests.post(url, json=payload, timeout=60 * 5) if response.status_code != 200: raise Exception(f"Error {response.status_code} returned from API") data = response.json()