Skip to content

Commit

Permalink
Fix tags parsing in __new_library_upload
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Aug 16, 2024
1 parent 1155e7a commit f2db35c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/galaxy/tools/actions/upload_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,9 @@ def __new_library_upload(trans, cntrller, uploaded_dataset, library_bunch, tag_h
tag_handler.apply_item_tag(item=ldda, user=trans.user, name="name", value=tag_from_filename, flush=False)

if tags_list := uploaded_dataset.get("tags", False):
for tag in tags_list:
tag_handler.apply_item_tag(item=ldda, user=trans.user, name="name", value=tag, flush=False)
new_tags = tag_handler.parse_tags_list(tags_list)
for tag in new_tags:
tag_handler.apply_item_tag(item=ldda, user=trans.user, name=tag[0], value=tag[1], flush=False)

trans.sa_session.add(ldda)
if state:
Expand Down

0 comments on commit f2db35c

Please sign in to comment.