Skip to content

Commit

Permalink
refactor: convert None to empty string in gen_subgraph_urls.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gosuto-inzasheru committed Apr 8, 2024
1 parent b0c0285 commit 9648d9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bal_addresses/subgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def get_subgraph_url(self, subgraph="core") -> str:
if chain == "zkevm":
return "https://subgraph.satsuma-prod.com/ab0804deff79/1xhub-ltd/aura-finance-zkevm/api"
elif chain in ["avalanche"]: # list of chains without an aura subgraph
return ""
return None
else:
return (
f"https://graph.aura.finance/subgraphs/name/aura/aura-{chain}-v2-1"
Expand Down
1 change: 1 addition & 0 deletions gen_subgraph_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def main():
for subgraph_type in ["core", "gauges", "blocks", "aura"]:
subgraph = Subgraph(chain)
url = subgraph.get_subgraph_url(subgraph_type)
url = url if url else ""
urls[chain].update({subgraph_type: url})

# dump the collected dict to json file
Expand Down

0 comments on commit 9648d9d

Please sign in to comment.