From 595c6e8d83885a6309172d01b99de73d0769bcc8 Mon Sep 17 00:00:00 2001 From: Dakota Howard <58985143+dthoward96@users.noreply.github.com> Date: Fri, 15 Nov 2024 13:43:51 -0500 Subject: [PATCH] V1.2.4 (#96) * Fix Genbank Upload Log Bug * Fix missing set --- tools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools.py b/tools.py index f8669b3..29483a5 100755 --- a/tools.py +++ b/tools.py @@ -21,12 +21,12 @@ # Check the config file def get_config(config_file: str, databases: List[str]) -> Dict[str, Any]: # Determine required database - submission_portals = [] + submission_portals = set() for database in databases: if "BIOSAMPLE" in database or "SRA" in database or "GENBANK" in database: - submission_portals.append("ncbi") + submission_portals.add("ncbi") if "GISAID" in database: - submission_portals.append("gisaid") + submission_portals.add("gisaid") # Check if list empty if not submission_portals: print("Error: Submission portals list cannot be empty.", file=sys.stderr)