mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
default to the last year
This commit is contained in:
parent
126bd5429a
commit
2cb966e124
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ class CategoriesController < ApplicationController
|
|||
|
||||
school_categories = SchoolCategory.for(@school, @category)
|
||||
@years = school_categories.map(&:year).map(&:to_i).sort
|
||||
@year = (params[:year] || @years.first || "2019").to_i
|
||||
@year = (params[:year] || @years.last || "2019").to_i
|
||||
@years.delete(@year)
|
||||
|
||||
if school_categories.empty?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue