Skip to content

Commit

Permalink
move yml to queries folder
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhong5297 committed Nov 30, 2023
1 parent a377d7e commit 10b834f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
File renamed without changes.
3 changes: 2 additions & 1 deletion scripts/pull_from_dune.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion scripts/push_to_dune.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 10b834f

Please sign in to comment.