Skip to content

Commit

Permalink
Remove original handling of rake type fix task
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhallett committed Oct 2, 2020
1 parent fecec06 commit 7a7485a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/models/doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2325,12 +2325,6 @@ def self.add_index_type(options={})

Doi.where(id: from_id..until_id).where('type' => nil).find_each(batch_size: 500) do |doi|
begin
if doi.agency.blank? || doi.agency.casecmp?("datacite")
type = "DataciteDoi"
else
type = "OtherDoi"
end

agency = doi.agency

if agency.blank? || agency.casecmp?("datacite")
Expand Down

0 comments on commit 7a7485a

Please sign in to comment.