Created
August 28, 2017 17:42
-
-
Save jamesvanmil/8e827b763a6a6b8f8c2b6c6c4ccc5964 to your computer and use it in GitHub Desktop.
Scripts to check on content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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