Skip to content

Commit

Permalink
janalyze: change API var to JORMUNGANDR_RESTAPI_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
disassembler committed Oct 10, 2019
1 parent 36950f4 commit 5ed97e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/janalyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 5ed97e7

Please sign in to comment.