Skip to content

Commit

Permalink
Merge pull request #450 from opendatacube/fix_resource_limit_bug
Browse files Browse the repository at this point in the history
Fix resource limit bug.
  • Loading branch information
pindge authored Oct 26, 2020
2 parents 20eace0 + 3b8fa16 commit 4cb7493
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datacube_ows/mv_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ def mv_search_datasets(index,
stv = st_view
if layer is None:
raise Exception("Must filter by product/layer")
if mask and resource_limited:
if mask and resource_limited and layer.pq_low_res_products:
prod_ids = [p.id for p in layer.pq_low_res_products]
elif mask:
prod_ids = [p.id for p in layer.pq_products]
elif resource_limited:
elif resource_limited and layer.low_res_products:
prod_ids = [p.id for p in layer.low_res_products]
else:
prod_ids = [p.id for p in layer.products]
Expand Down

0 comments on commit 4cb7493

Please sign in to comment.