From 49210d04641ba83711bdf0493f7bc9e50f2e7ab5 Mon Sep 17 00:00:00 2001 From: Pieter Verschaffelt Date: Tue, 12 Mar 2024 16:10:09 +0100 Subject: [PATCH] Convert set to array --- app/controllers/api/api_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/api_controller.rb b/app/controllers/api/api_controller.rb index ecf89e2..8947fe2 100644 --- a/app/controllers/api/api_controller.rb +++ b/app/controllers/api/api_controller.rb @@ -91,7 +91,7 @@ def pept2taxa end # Now, retrieve all information associated with the taxa - taxon_information = Taxon.find(all_taxa) + taxon_information = Taxon.find(all_taxa.to_a) taxon_id_to_obj = Hash.new