Commit 1d41355e authored by Tugce Nur Tas's avatar Tugce Nur Tas

adapt scope to accepted volunteers

parent 288fda37
Pipeline #34412 failed with stage
in 38 minutes and 57 seconds
......@@ -57,9 +57,9 @@ class PerformanceReport < ApplicationRecord
active_total: active_total.uniq.size,
only_assignment_active: only_assignment_active.size,
only_group_active: only_group_active.size,
created: volunteers.created_after(periods.first).count,
created: volunteers.where(acceptance: 'accepted').created_after(periods.first).count,
resigned: volunteers.resigned_between(*periods).count,
inactive: volunteers.where.not(id: assignment_active + group_active).distinct.count,
inactive: volunteers.where(acceptance: 'accepted').where.not(id: assignment_active + group_active).distinct.count,
assignment_hour_records: hours.assignment.count,
assignment_hours: hours.assignment.total_hours.to_i,
group_offer_hour_records: hours.group_offer.count,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment