eodms-sgdot / eodms-cli

The EODMS CLI Python script is used to search, order and download imagery from the Earth Observation Data Management System using the REST API service.
Other
28 stars 8 forks source link

Downloading Existing Orders #2

Closed keballantyne closed 3 years ago

keballantyne commented 3 years ago

Issue with downloading existing orders using the DownloadResults CSV file from a previous run of the script.

When an order item's status is set to AVAILABLE_FOR_DOWNLOAD, it's assigned a new Order Item ID. If the output DownloadResults CSV file was created prior to the Order Item becoming status AVAILABLE_FOR_DOWNLOAD (due to an error), then downloading again using the CSV file won't work as the CSV file would have the original Order Item ID and not the new ID.

keballantyne commented 3 years ago

This issue has been fixed by searching for the ParentItemId in the Order Item results from the RAPI.