mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 13:38:18 -08:00
ECP-215 prep for item level exports
This commit is contained in:
parent
4561d34d02
commit
1310fd9f1c
2 changed files with 11 additions and 8 deletions
|
|
@ -1,10 +1,10 @@
|
|||
module Report
|
||||
class Exports
|
||||
def self.create
|
||||
academic_years = ::AcademicYear.all
|
||||
districts = ::District.all
|
||||
use_student_survey_items = ::SurveyItem.student_survey_items.map(&:id)
|
||||
schools = ::School.all.includes(:district)
|
||||
def self.create(districts: ::District.all, academic_years: ::AcademicYear.all, use_student_survey_items: ::SurveyItem.student_survey_items.map(&:id))
|
||||
# academic_years = ::AcademicYear.all
|
||||
# districts = ::District.all
|
||||
# use_student_survey_items = ::SurveyItem.student_survey_items.map(&:id)
|
||||
schools = districts.flat_map(&:schools)
|
||||
|
||||
reports = {
|
||||
"Subcategory by School & District" => lambda { |schools, academic_years|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue