Skip to content

Commit

Permalink
chore(datasets): make flag case insensitive (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
philloooo authored Mar 1, 2019
1 parent b80307c commit a31fbb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peregrine/blueprints/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_datasets():
nodes = nodes.split(",")
if not nodes:
raise UserError("Need to provide target nodes in query param")
if os.environ.get("PUBLIC_DATASETS", False) == "true":
if os.environ.get("PUBLIC_DATASETS", "false").lower() == "true":
set_read_access_projects_for_public_endpoint()
else:
set_read_access_projects()
Expand Down

0 comments on commit a31fbb7

Please sign in to comment.