Skip to content

Commit

Permalink
Fixed error with unparsable sequences - #356
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Feb 1, 2021
1 parent 93f42bc commit cb32b90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 2.7.4 (unreleased)

- Fixed error on redirect with Ruby 3
- Fixed error with unparsable sequences

## 2.7.3 (2020-11-23)

Expand Down
3 changes: 2 additions & 1 deletion lib/pghero/methods/sequences.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def sequences
end
end

sequences.sort_by { |s| s[:sequence] }
# use to_s for unparsable sequences
sequences.sort_by { |s| s[:sequence].to_s }
end

def sequence_danger(threshold: 0.9, sequences: nil)
Expand Down

0 comments on commit cb32b90

Please sign in to comment.