Skip to content

Commit

Permalink
instead of take first item from label_list, join them with ", "
Browse files Browse the repository at this point in the history
  • Loading branch information
panyq357 committed Aug 8, 2024
1 parent dd65531 commit 0e3308b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/onto_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,7 @@ def get_onto_label(self, onto_id):

label_list = list(set(search_result_list[0].label))

if len(label_list) != 1:
raise Exception(f"error on getting the label of {onto_id}")

return label_list[0]
return ", ".join(label_list)

def has_ancestor(self, onto_id, ancestor_id):
'''
Expand Down

0 comments on commit 0e3308b

Please sign in to comment.