Skip to content

Commit

Permalink
Fixing bugs for tools without updated annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
r78v10a07 committed Oct 9, 2020
1 parent 642cf6d commit 5a3fdcd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bioconda2biocontainer/biocontainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ def find_latest_image(package_name, package_version, all=False, sort_by_size=Fal
if filter_by_container_registry(container_type, registry_host, i):
if 'downloads' not in i:
i['downloads'] = 0
if 'updated' not in i:
i['updated'] = ''
if 'size' not in i:
i['size'] = 0
versions.append(i)
if sort_by_size:
versions = sorted(versions, key=lambda i: i['size'])
Expand Down

0 comments on commit 5a3fdcd

Please sign in to comment.