Skip to content

Commit

Permalink
Remove unused path through upload code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Aug 6, 2024
1 parent 7185a12 commit 8269020
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/galaxy/tools/actions/upload_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def __new_library_upload(trans, cntrller, uploaded_dataset, library_bunch, tag_h


def new_upload(
trans: ProvidesUserContext, cntrller, uploaded_dataset, library_bunch=None, history=None, state=None, tag_list=None
trans: ProvidesUserContext, cntrller, uploaded_dataset, library_bunch=None, history=None, state=None
):
tag_handler = trans.tag_handler
if library_bunch:
Expand All @@ -279,12 +279,9 @@ def new_upload(
if uploaded_dataset.tags:
new_tags = tag_handler.parse_tags_list(uploaded_dataset.tags.split(","))
for tag in new_tags:
log.info(f"applying item tag.... {tag}")
tag_handler.apply_item_tag(
user=trans.user, item=upload_target_dataset_instance, name=tag[0], value=tag[1], flush=True
)
if tag_list:
tag_handler.add_tags_from_list(trans.user, upload_target_dataset_instance, tag_list, flush=False)

return upload_target_dataset_instance

Expand Down

0 comments on commit 8269020

Please sign in to comment.