Skip to content
Browse files

Don't use only first id

  • Loading branch information...
1 parent 45ccff4 commit b0e1341eaaed48d3ba3cf10be2f331fc5f301d1b @blakesweeney committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ncbi/esearch.rb
View
2 lib/ncbi/esearch.rb
@@ -9,7 +9,7 @@ def initialize(database)
def [](term)
@result = search(@database, :term => term)
- ids = result["IdList"].map { |d| d["Id"].first }
+ ids = result["IdList"].map { |d| d["Id"] }.flatten
return ids
end
end

0 comments on commit b0e1341

Please sign in to comment.
Something went wrong with that request. Please try again.