From bea6b38af6d4647d37ef6b5f587bb7ac5fa763d9 Mon Sep 17 00:00:00 2001 From: Tatiana Gurbich Date: Thu, 25 Jul 2024 09:44:14 +0100 Subject: [PATCH] Removed changing collection date to lowercase as this was failing checks --- genomeuploader/genome_upload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/genomeuploader/genome_upload.py b/genomeuploader/genome_upload.py index 6818308..45357f8 100755 --- a/genomeuploader/genome_upload.py +++ b/genomeuploader/genome_upload.py @@ -428,8 +428,8 @@ def extract_ENA_info(genomeInfo, uploadDir, webin, password): if not country in GEOGRAPHIC_LOCATIONS: country = "not provided" - collectionDate = sampleInfo["collection_date"].lower() - if not collectionDate or collectionDate == "missing" or collectionDate in \ + collectionDate = sampleInfo["collection_date"] + if not collectionDate or collectionDate.lower() == "missing" or collectionDate.lower() in \ ["not applicable", "not available", "na"]: collectionDate = "not provided"