Skip to content

Commit

Permalink
Updated url for lambda function
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchellAV committed Nov 16, 2023
1 parent 4cef0f0 commit bb0a9a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solardatatools/dataio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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()
Expand Down

0 comments on commit bb0a9a4

Please sign in to comment.