diff --git a/.env.test b/.env.test index c3861c0..0145f72 100644 --- a/.env.test +++ b/.env.test @@ -1,4 +1,4 @@ -#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" +#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" #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 diff --git a/README.md b/README.md index e4f4828..4d6f99d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A template for creating repos to [manage your Dune queries](https://dune.mintlif ### Setup Your Repo -1. Generate an API key from your Dune account and put that in both your `.env` file and [github action secrets](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository) (name it `DUNE_API_KEY`). You can create a key under your Dune team settings. Add `https://api.dune.com/api` into the action secrets under `DUNE_API_BASE_URL` too. *The api key must be from a plus plan for this repo to work.* +1. Generate an API key from your Dune account and put that in both your `.env` file and [github action secrets](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository) (name it `DUNE_API_KEY`). You can create a key under your Dune team settings. *The api key must be from a plus plan for this repo to work.* 2. Type your intended query ids into the `queries.yml` file. The id can be found from the link `https://dune.com/queries//...`. If you're creating this for a dashboard, go to the dashboard you want to create a repo and click on the "github" button in the top right of your dashboard to see the query ids. diff --git a/scripts/upload_to_dune.py b/scripts/upload_to_dune.py index 40361e9..1eec72c 100644 --- a/scripts/upload_to_dune.py +++ b/scripts/upload_to_dune.py @@ -16,7 +16,7 @@ uploads_path = os.path.join(os.path.dirname(__file__), '..', 'uploads') files = os.listdir(uploads_path) -if len(files) != 0: +if len(files) == 0: exit() for file in files: