From 10b834fcd1ee83632086ee89fd691c133d059b11 Mon Sep 17 00:00:00 2001 From: Andrew <47720952+andrewhong5297@users.noreply.github.com> Date: Wed, 29 Nov 2023 21:21:43 -0500 Subject: [PATCH] move yml to queries folder --- queries.yml => queries/queries.yml | 0 scripts/pull_from_dune.py | 3 ++- scripts/push_to_dune.py | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) rename queries.yml => queries/queries.yml (100%) diff --git a/queries.yml b/queries/queries.yml similarity index 100% rename from queries.yml rename to queries/queries.yml diff --git a/scripts/pull_from_dune.py b/scripts/pull_from_dune.py index 9a241f0..39fa8e5 100644 --- a/scripts/pull_from_dune.py +++ b/scripts/pull_from_dune.py @@ -14,7 +14,8 @@ dune = DuneClient.from_env() # Read the queries.yml file -with open('queries.yml', 'r', encoding='utf-8') as file: +queries_yml = os.path.join(os.path.dirname(__file__), '..', 'queries', 'queries.yml') +with open(queries_yml, 'r', encoding='utf-8') as file: data = yaml.safe_load(file) # Extract the query_ids from the data diff --git a/scripts/push_to_dune.py b/scripts/push_to_dune.py index f898205..71b1932 100644 --- a/scripts/push_to_dune.py +++ b/scripts/push_to_dune.py @@ -14,7 +14,8 @@ dune = DuneClient.from_env() # Read the queries.yml file -with open('queries.yml', 'r', encoding='utf-8') as file: +queries_yml = os.path.join(os.path.dirname(__file__), '..', 'queries', 'queries.yml') +with open(queries_yml, 'r', encoding='utf-8') as file: data = yaml.safe_load(file) # Extract the query_ids from the data