Skip to content

Commit

Permalink
show correct number of repositories with dois not indexed. #690
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jan 3, 2021
1 parent d99ad32 commit bae515c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -701,20 +701,20 @@ def self.export_doi_counts(query: nil)
end

if rows.blank?
logger.warn "Found 0 repositories with missing DOIs."
Rails.logger.warn "Found 0 repositories with missing DOIs."
return nil
end

csv = [CSV.generate_line(headers)] + rows

logger.warn "Found #{csv.size} repositories with missing DOIs."
Rails.logger.warn "Found #{csv.size - 1} repositories with missing DOIs."

csv.join("")
end

def self.import_dois(client_id)
if client_id.blank?
logger.error "Repository not found for client ID #{client_id}."
Rails.logger.error "Repository not found for client ID #{client_id}."
exit
end

Expand Down

0 comments on commit bae515c

Please sign in to comment.