Skip to content

Commit

Permalink
Update tpv/core/helpers.py
Browse files Browse the repository at this point in the history
Co-authored-by: Nuwan Goonasekera <2070605+nuwang@users.noreply.github.com>
  • Loading branch information
sanjaysrikakulam and nuwang authored Jan 24, 2024
1 parent 8aa024d commit e92d23b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpv/core/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def tool_version_gt(tool, version):
return parse_version(tool.version) > parse_version(version)


def object_store_ids_and_dataset_size(job):
def get_dataset_attributes(datasets):
# Return a dictionary of dataset ids and their object store ids
# and file sizes in bytes for all input datasets in a job
return {i.dataset.dataset.id: {'object_store_id': i.dataset.dataset.object_store_id, 'size': get_dataset_size(i.dataset.dataset)} for i in datasets or {}}

0 comments on commit e92d23b

Please sign in to comment.