Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#### Tools helper code
* Drop [nf-core/rnaseq](https://github.com/nf-core/rnaseq]) from `blacklist.json` to make template sync available
* Fix bug in `nf-core download` so that it now fetches the latest release by default

## [v1.5](https://github.com/nf-core/tools/releases/tag/1.5) - 2019-03-13 Iron Shark

Expand Down
2 changes: 2 additions & 0 deletions nf_core/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def fetch_workflow_details(self, wfs):

# Find latest release hash
if self.release is None and len(wf.releases) > 0:
# Sort list of releases so that most recent is first
wf.releases = sorted(wf.releases, key=lambda k: k.get('published_at_timestamp', 0), reverse=True)
self.release = wf.releases[0]['tag_name']
self.wf_sha = wf.releases[0]['tag_sha']
logging.debug("No release specified. Using latest release: {}".format(self.release))
Expand Down