From eca84619cec2d8781ed40d8a1ccb97421405163e Mon Sep 17 00:00:00 2001 From: April Shen Date: Mon, 25 Mar 2024 14:40:58 +0000 Subject: [PATCH] Update monitor_duplicate_accessions.py --- .../main/resources/monitoring/monitor_duplicate_accessions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eva-accession-pipeline/src/main/resources/monitoring/monitor_duplicate_accessions.py b/eva-accession-pipeline/src/main/resources/monitoring/monitor_duplicate_accessions.py index c3bf58bf0..0008b9682 100644 --- a/eva-accession-pipeline/src/main/resources/monitoring/monitor_duplicate_accessions.py +++ b/eva-accession-pipeline/src/main/resources/monitoring/monitor_duplicate_accessions.py @@ -33,7 +33,7 @@ def get_mongo_uri(mongo_connection_properties): def export_mongo_accessions(mongo_connection_properties, collection_name, export_output_filename): export_command = 'mongoexport --uri {0} ' \ '--collection {1} --type=csv --fields accession ' \ - "--query '{{remappedFrom: {{$exists: false}}}}' " \ + "--query '{{\"remappedFrom\": {{\"$exists\": false}}}}' " \ '-o "{2}" 2>&1' \ .format(get_mongo_uri(mongo_connection_properties), collection_name, export_output_filename) run_command_with_output("Exporting accessions in the {0} collection in the {1} database at {2}..."