Skip to content

Instantly share code, notes, and snippets.

@jamesvanmil
Created August 28, 2017 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesvanmil/8e827b763a6a6b8f8c2b6c6c4ccc5964 to your computer and use it in GitHub Desktop.
Save jamesvanmil/8e827b763a6a6b8f8c2b6c6c4ccc5964 to your computer and use it in GitHub Desktop.
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