From e4d2bf7d8741e18c48216682d052fa083f74624b Mon Sep 17 00:00:00 2001 From: Pieter Verschaffelt Date: Tue, 12 Mar 2024 16:05:26 +0100 Subject: [PATCH] update set creation --- 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 cbfc5ae..e49abf6 100644 --- a/app/controllers/api/api_controller.rb +++ b/app/controllers/api/api_controller.rb @@ -84,7 +84,7 @@ def pept2taxa # Parse the response body as JSON response_data = JSON.parse(response.body) - all_taxa = set() + all_taxa = Set.new response_data["result"].each do |item| all_taxa.merge(item.taxa)