mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-09 07:28:41 -07:00
Feat: add grade-level survey item report
This commit is contained in:
parent
f0024d019d
commit
d82f40aa3d
2 changed files with 84 additions and 4 deletions
|
|
@ -72,7 +72,7 @@ namespace :report do
|
|||
end
|
||||
|
||||
namespace :survey_item do
|
||||
task :by_item, [:school, :academic_year] => :environment do |_, args|
|
||||
task :create, [:school, :academic_year] => :environment do |_, args|
|
||||
school = School.find_by_name(args[:school])
|
||||
academic_year = AcademicYear.find_by_range(args[:academic_year])
|
||||
if school == nil
|
||||
|
|
@ -84,7 +84,8 @@ namespace :report do
|
|||
bad = 1
|
||||
end
|
||||
next if bad == 1
|
||||
Report::SurveyItem.create_report(school: , academic_year:, filename: "survey_item_by_item_report.csv")
|
||||
Report::SurveyItem.create_item_report(school:, academic_year:)
|
||||
Report::SurveyItem.create_grade_report(school:, academic_year:)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue