From 5081ccc6a4dca8abfadccd2032d7abcbe958d925 Mon Sep 17 00:00:00 2001 From: alexmcdermid Date: Wed, 14 Aug 2024 11:35:38 -0700 Subject: [PATCH] DIS: Download Indig and Support Programs Headcount reports by district and by school --- backend/src/components/sdc.js | 2 ++ backend/src/util/constants.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/backend/src/components/sdc.js b/backend/src/components/sdc.js index ab537ee0..6d50b4b2 100644 --- a/backend/src/components/sdc.js +++ b/backend/src/components/sdc.js @@ -633,6 +633,8 @@ function getFileDetails(reportType, mincode) { 'DIS_SPECIAL_EDUCATION_HEADCOUNT': { filename: `SpecialEdHeadcount_District_${mincode}.pdf`, contentType: 'application/pdf' }, 'DIS_SPECIAL_EDUCATION_HEADCOUNT_PER_SCHOOL': { filename: `SpecialEdHeadcount_District_${mincode}_PerSchool.pdf`, contentType: 'application/pdf' }, 'INDIGENOUS_HEADCOUNT': { filename: `IndigenousHeadcount_${mincode}.pdf`, contentType: 'application/pdf' }, + 'DIS_INDIGENOUS_HEADCOUNT': { filename: `IndigenousHeadcount_District_${mincode}.pdf`, contentType: 'application/pdf' }, + 'DIS_INDIGENOUS_HEADCOUNT_PER_SCHOOL': { filename: `IndigenousHeadcount_District_${mincode}_PerSchool.pdf`, contentType: 'application/pdf' }, 'BAND_RESIDENCE_HEADCOUNT': { filename: `BandOfResidenceHeadcount_${mincode}.pdf`, contentType: 'application/pdf' }, 'CAREER_HEADCOUNT': { filename: `CareerProgramsHeadcount_${mincode}.pdf`, contentType: 'application/pdf' }, 'FRENCH_HEADCOUNT': { filename: `FrenchProgramsHeadcount_${mincode}_School.pdf`, contentType: 'application/pdf' }, diff --git a/backend/src/util/constants.js b/backend/src/util/constants.js index e9ae482e..34fe6f20 100644 --- a/backend/src/util/constants.js +++ b/backend/src/util/constants.js @@ -187,6 +187,8 @@ const reportTypeValues = [ ['special-ed_dis', 'DIS_SPECIAL_EDUCATION_HEADCOUNT'], ['special-ed-per-school_dis', 'DIS_SPECIAL_EDUCATION_HEADCOUNT_PER_SCHOOL'], ['indigenous', 'INDIGENOUS_HEADCOUNT'], + ['indigenous_dis', 'DIS_INDIGENOUS_HEADCOUNT'], + ['indigenous-per-school_dis', 'DIS_INDIGENOUS_HEADCOUNT_PER_SCHOOL'], ['band-codes', 'BAND_RESIDENCE_HEADCOUNT'], ['career', 'CAREER_HEADCOUNT'], ['french', 'FRENCH_HEADCOUNT'],