From 0b725bb7ed3eeae33f0522006180b0080669408a Mon Sep 17 00:00:00 2001 From: Andrew <47720952+andrewhong5297@users.noreply.github.com> Date: Sat, 3 Feb 2024 22:15:37 -0500 Subject: [PATCH] move around --- README.md | 2 +- queries/queries.yml => queries.yml | 0 scripts/pull_from_dune.py | 2 +- scripts/push_to_dune.py | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename queries/queries.yml => queries.yml (100%) diff --git a/README.md b/README.md index 0be5342..f7edeea 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ A template for creating repos to [manage your Dune queries](https://dune.mintlif 2. Then, go to the dashboard you want to create a repo for (must be owned by you/your team). Click on the "github" button in the top right of your dashboard to see the query ids. -3. Copy and paste that list into the `queries.yml` file inside the `/queries` folder. You can paste any list of query ids, doesn't have to be linked to a dashboard. +3. Copy and paste that list into the `queries.yml` file. You can paste any list of query ids, it doesn't have to be linked to a dashboard. 4. Then, run `pull_from_dune.py` to bring in all queries into `/query_{id}.sql` files within the `/queries` folder. Directions to setup and run this script are below. diff --git a/queries/queries.yml b/queries.yml similarity index 100% rename from queries/queries.yml rename to queries.yml diff --git a/scripts/pull_from_dune.py b/scripts/pull_from_dune.py index 39fa8e5..9b60313 100644 --- a/scripts/pull_from_dune.py +++ b/scripts/pull_from_dune.py @@ -14,7 +14,7 @@ dune = DuneClient.from_env() # Read the queries.yml file -queries_yml = os.path.join(os.path.dirname(__file__), '..', 'queries', 'queries.yml') +queries_yml = os.path.join(os.path.dirname(__file__), '..', 'queries.yml') with open(queries_yml, 'r', encoding='utf-8') as file: data = yaml.safe_load(file) diff --git a/scripts/push_to_dune.py b/scripts/push_to_dune.py index 86357e2..49c174d 100644 --- a/scripts/push_to_dune.py +++ b/scripts/push_to_dune.py @@ -14,7 +14,7 @@ dune = DuneClient.from_env() # Read the queries.yml file -queries_yml = os.path.join(os.path.dirname(__file__), '..', 'queries', 'queries.yml') +queries_yml = os.path.join(os.path.dirname(__file__), '..', 'queries.yml') with open(queries_yml, 'r', encoding='utf-8') as file: data = yaml.safe_load(file)