Skip to content

Commit

Permalink
fix multiple bugs in query following manual testing
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdunnjpl committed Dec 20, 2023
1 parent 747a159 commit a6d384d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pds/registrysweepers/ancestry/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ def get_collections_containing_products_query(
):
# Query the registry-refs index for all collections containing any of the given non-aggregate products
nonaggregate_member_lidvid_strs = list(nonaggregate_member_lidvid_strs)
query: Dict = {"terms": {"product_lidvid": nonaggregate_member_lidvid_strs}}
_source = {"includes": ["collection_lidvid"]}
query: Dict = {"query": {"terms": {"product_lidvid": nonaggregate_member_lidvid_strs}}}
_source = {"includes": ["collection_lidvid", "product_lidvid"]}
query_f = query_registry_db_or_mock(registry_db_mock, "get_collections_with_shared_products_query")
docs = query_f(client, query, _source, index_name="registry_refs")
docs = query_f(client, query, _source, index_name="registry-refs")

return docs

0 comments on commit a6d384d

Please sign in to comment.