Skip to content

Commit

Permalink
feat(audit): query improvements
Browse files Browse the repository at this point in the history
query version 1.1 for CSLC. use temporal time instead of native-id query.

Refs #1041
  • Loading branch information
chrisjrd committed Dec 16, 2024
1 parent 88ef9a9 commit b86cf38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/ops/cmr_audit/cmr_audit_hls.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async def async_get_cmr(
request_body = (
"provider=POCLOUD"
f'{"&short_name[]=" + "&short_name[]=".join(always_iterable(collection_short_name))}'
"&options[native-id][pattern]=true"
# "&options[native-id][pattern]=true"
# f"{native_id_patterns_query_params}"
f"&temporal[]={urllib.parse.quote(temporal_date_start, safe='/:')},{urllib.parse.quote(temporal_date_end, safe='/:')}"
)
Expand Down Expand Up @@ -237,7 +237,7 @@ async def run(argv: list[str]):
)

logger.info("Querying CMR for list of expected DSWx granules")
cmr_dswx_products = await async_get_cmr_dswx(dswx_native_id_patterns)
cmr_dswx_products = await async_get_cmr_dswx(dswx_native_id_patterns, temporal_date_start=cmr_start_dt_str, temporal_date_end=cmr_end_dt_str)

cmr_dswx_prefix_expected = {prefix[:-1] for prefix in dswx_native_id_patterns}
cmr_dswx_prefix_actual = dswx_native_ids_to_prefixes(cmr_dswx_products)
Expand Down

0 comments on commit b86cf38

Please sign in to comment.