Skip to content
Permalink
Browse files

janalyze: change API var to JORMUNGANDR_RESTAPI_URL

  • Loading branch information...
disassembler committed Oct 10, 2019
1 parent 36950f4 commit 5ed97e762c1d03d2c449c7cd66d94c764edeeaad
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/janalyze.py
@@ -253,7 +253,7 @@ def main():
if args.restapi is not None:
api_url_base = args.restapi
else:
api_url_base = os.environ.get("JORMUNGANDR_API", "http://localhost:3001/api")
api_url_base = os.environ.get("JORMUNGANDR_RESTAPI_URL", "http://localhost:3001/api")
api_url = f"{api_url_base}/v0"

if args.stats == True:
@@ -308,7 +308,7 @@ def main():
help="Analyse the current epoch, cross referencing both block aggregate and stake distributions")

parser.add_argument("-r", "--restapi", nargs="?", metavar="RESTAPI", type=str, const="http://127.0.0.1:3001/api",
help="Set the rest api to utilize; by default: \"http://127.0.0.1:3001/api\". An env var of JORMUNGANDR_API can also be seperately set. ")
help="Set the rest api to utilize; by default: \"http://127.0.0.1:3001/api\". An env var of JORMUNGANDR_RESTAPI_URL can also be seperately set. ")

args = parser.parse_args()

0 comments on commit 5ed97e7

Please sign in to comment.
You can’t perform that action at this time.