Skip to content

Commit

Permalink
Fix missing set
Browse files Browse the repository at this point in the history
  • Loading branch information
dthoward96 committed Nov 15, 2024
1 parent 26809fd commit 47023f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 47023f9

Please sign in to comment.