Skip to content

Commit

Permalink
fix CMR query in UAT
Browse files Browse the repository at this point in the history
  • Loading branch information
torimcd committed Aug 28, 2024
1 parent 61893cf commit e93b428
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 82 deletions.
5 changes: 4 additions & 1 deletion hydrocron/db/load_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@ def find_new_granules(collection_shortname, start_date, end_date):
results : list of Granule objects
List of S3 paths to the granules that have not yet been ingested
"""
auth = earthaccess.login(persist=True)
if os.environ['CMR_ENV'] == "UAT":
auth = earthaccess.login(persist=True, system=earthaccess.UAT)
else:
auth = earthaccess.login(persist=True)

logging.info("Searching for granules in collection %s", collection_shortname)

Expand Down
Loading

0 comments on commit e93b428

Please sign in to comment.