Skip to content

Commit

Permalink
normalize search test in identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
YaphetKG committed Dec 19, 2023
1 parent 1bd901f commit 3f4e334
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dug/core/annotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ def __init__(self, id, label, types=None, search_text=[], description="", equiva
if types is None:
types = []
self.types = types
self.search_text = [search_text] if search_text else []
if isinstance(search_text, str):
self.search_text = [search_text] if search_text else []
elif isinstance(search_text, list):
self.search_text = search_text
self.equivalent_identifiers = equivalent_identifiers
self.synonyms = synonyms
self.purl = purl
Expand Down

0 comments on commit 3f4e334

Please sign in to comment.