From a59916e6aa2b6ce49aab458b37d6c3cc661f2775 Mon Sep 17 00:00:00 2001 From: Andrew <47720952+andrewhong5297@users.noreply.github.com> Date: Sat, 3 Feb 2024 22:12:59 -0500 Subject: [PATCH] add env --- .env.test | 5 +++-- scripts/upload_to_dune.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.env.test b/.env.test index 0145f72..ec22d0e 100644 --- a/.env.test +++ b/.env.test @@ -1,4 +1,5 @@ -#copy and paste this file into a .env file to run scripts locally. You will also need to add the DUNE_API_KEY into the repo settings under "Secrets and Variables" +#copy and paste this file into a .env file to run scripts locally. You will also need to add the DUNE_API_KEY and DUNE_API_BASE_URL into the repo settings under "Secrets and Variables" #add a dune API key - you can create one under team settings (https://dune.com/settings/teams/manage/{team_name}/api). You must be on the premium plan. -DUNE_API_KEY= \ No newline at end of file +DUNE_API_KEY= +DUNE_API_BASE_URL=https://api.dune.com \ No newline at end of file diff --git a/scripts/upload_to_dune.py b/scripts/upload_to_dune.py index 5ec4e36..4a6564e 100644 --- a/scripts/upload_to_dune.py +++ b/scripts/upload_to_dune.py @@ -29,5 +29,5 @@ ) print(f'uploaded table "{file_name}"') except Exception as e: - print(f"An error occurred while uploading the CSV: {str(e)}") + print(e)