Create ability to run exports locally so they get created in

tmp/exports.
Fix measure summary for 'all years' output.

Slight speedup to survey item by grade.
Fix Survey item by item for the 'all years' output
This commit is contained in:
rebuilt 2025-06-06 16:40:31 -07:00
parent 31e9779deb
commit 6899e1aa69
7 changed files with 282 additions and 173 deletions

View file

@ -194,4 +194,12 @@ namespace :report do
Report::SurveyItemResponse.create(schools: district.schools, academic_years:, filename:)
end
end
# Usage example
# bundle exec rake "report:exports:create"
namespace :exports do
task :create, %i[district academic_year] => :environment do |_, _args|
Report::Exports.create
end
end
end