Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Scripts to check on content
versions = GenericFile.all.map { |gf| {pid: gf.pid, versions: gf.versions.length } }
versions.select { |f| f[:versions] > 1 }
works = []
Curate.configuration.registered_curation_concern_types.each do |klass|
works += klass.constantize.all.select { |work| work.depositor != work.owner }
end
Person.all.select { |p| p.representative_image_url[/downloads/] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment