diff --git a/data_management/services/dlu_management.py b/data_management/services/dlu_management.py index 04a62f6..635ca82 100644 --- a/data_management/services/dlu_management.py +++ b/data_management/services/dlu_management.py @@ -248,7 +248,7 @@ def get_redcap_ids_with_null_package_id(self): def get_package_ids_for_redcap_id(self, redcap_id): return self.db.get_data( - "select dlu_package_id from dlu_package_inventory where dlu_subject_id = %s and globus_dlu_status = 'success'", (redcap_id,) + "select dlu_package_id from dlu_package_inventory where dlu_subject_id = %s and globus_dlu_status IS NULL", (redcap_id,) ) def update_package_ids_in_slide_scan_curation(self, redcap_id, package_id):