mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
fix: add pre-k to list of grades
This commit is contained in:
parent
2cb43058a0
commit
4c017cf857
2 changed files with 35 additions and 0 deletions
33
app/presenters/analyze/graph/column/grade/p_k.rb
Normal file
33
app/presenters/analyze/graph/column/grade/p_k.rb
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Analyze
|
||||
module Graph
|
||||
module Column
|
||||
module Grade
|
||||
class PK < GroupedBarColumnPresenter
|
||||
include Analyze::Graph::Column::Grade::ScoreForGrade
|
||||
include Analyze::Graph::Column::Grade::GradeCount
|
||||
def label
|
||||
%w[Pre-K]
|
||||
end
|
||||
|
||||
def basis
|
||||
"student"
|
||||
end
|
||||
|
||||
def show_irrelevancy_message?
|
||||
false
|
||||
end
|
||||
|
||||
def show_insufficient_data_message?
|
||||
false
|
||||
end
|
||||
|
||||
def grade
|
||||
-1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -34,6 +34,7 @@ module Analyze
|
|||
end
|
||||
|
||||
CFR = {
|
||||
-1 => PK,
|
||||
0 => Zero,
|
||||
1 => One,
|
||||
2 => Two,
|
||||
|
|
@ -51,3 +52,4 @@ module Analyze
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue