diff --git a/app/models/client.rb b/app/models/client.rb index 791f376e6..1a6538910 100644 --- a/app/models/client.rb +++ b/app/models/client.rb @@ -707,7 +707,12 @@ def self.export_doi_counts(query: nil) csv = [CSV.generate_line(headers)] + rows - Rails.logger.warn "Found #{csv.size - 1} repositories with missing DOIs." + total_missing = rows.reduce(0) do |sum, row| + sum = sum + row.split(",").last.to_i + sum + end + + Rails.logger.warn "Found #{csv.size - 1} repositories with #{total_missing} missing DOIs." csv.join("") end