Skip to content
Snippets Groups Projects
Commit 375ecd17 authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

make sure wrester returns science product specific ancillaries

parent 47c6a12c
No related branches found
No related tags found
2 merge requests!1605Merge 2.8.2.3 work to main,!1531make sure wrester returns science product specific ancillaries
Pipeline #12884 passed
......@@ -429,11 +429,11 @@ class WrestWorkflowMetadata:
files_query = """
WITH product_locators AS (
SELECT sp.science_product_locator,
ap.ancillary_product_locator
FROM science_products_product_groups sp
JOIN ancillary_products ap ON sp.product_group_id = ap.product_group_id
WHERE sp.product_group_id = %(pg_id)s
SELECT sp.science_product_locator,
atspl.ancillary_product_locator
FROM science_products_product_groups sp
JOIN ancillary_to_science_product_locators atspl on sp.science_product_locator = atspl.science_product_locator
WHERE sp.product_group_id = %(pg_id)s
), filegroups AS (
SELECT ap2.filegroup_id
FROM ancillary_products ap2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment