Skip to content

Commit

Permalink
Only enrich non-deleted clients/repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhoads committed Feb 16, 2023
1 parent dd765cf commit 9cb1291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/enrich.rake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace :enrich do
end

puts "Searching for disciplinary repositories with re3data_ids without subjects"
search_results = Client.search("re3data_id:* AND -subjects:* AND repository_type:disciplinary")
search_results = Client.search("re3data_id:* AND -subjects:* AND -deleted_at:* AND repository_type:disciplinary")
puts "Found #{search_results.records.count} repostitories. Enriching now..."
search_results.records.map do |c|
enrich_client(c)
Expand Down

0 comments on commit 9cb1291

Please sign in to comment.