From c51087127adde5d8c22ea4d17df0aa2983b5b1c0 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Thu, 26 Nov 2020 14:00:16 +0100 Subject: [PATCH] simplify report. #676 --- app/models/client.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/models/client.rb b/app/models/client.rb index fc5232a07..d7ed71c5e 100644 --- a/app/models/client.rb +++ b/app/models/client.rb @@ -688,8 +688,6 @@ def self.export_doi_counts(query: nil) doisMissing: db_total - es_total, }.values - puts CSV.generate_line(row) - sum << CSV.generate_line(row) end @@ -700,7 +698,7 @@ def self.export_doi_counts(query: nil) logger.warn "Found #{csv.size} repositories with missing DOIs." - csv.join(",") + csv.join("\n") end protected