Skip to content

Commit

Permalink
Merge pull request #2573 from osulp/feature/fixityCheckReport
Browse files Browse the repository at this point in the history
Change minor fixity report task
  • Loading branch information
CGillen authored Mar 20, 2024
2 parents b612d36 + 77ee363 commit 6bdf2d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/tasks/fixity_check.rake
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ namespace :scholars_archive do
latest_file = ChecksumAuditLog.where("updated_at >= ?", start_time)
file_checked = latest_file.count
file_passed = latest_file.where("passed = true").count
file_failed = latest_file.where("passed = false").count

# QUERY #2: Get all the ids that failed via checking with fixity
failed_arr += latest_file.where("passed = false").map(&:file_set_id)

# DATA: Count the failed in the array instead of query
file_failed = failed_arr.count

# APPEND: Display an outro message saying Fixity is done checking
Rails.logger.info "\n[COMPLETE] All fixity checks complete!\n"

Expand Down

0 comments on commit 6bdf2d1

Please sign in to comment.