mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
sync school aggregates
This commit is contained in:
parent
c93e878f60
commit
9eb36b0510
1 changed files with 10 additions and 1 deletions
|
|
@ -564,7 +564,7 @@ namespace :data do
|
|||
task sync: :environment do
|
||||
sync_school_category_aggregates
|
||||
|
||||
Recipient.created_in(@year).each { |r| r.update_counts }
|
||||
# Recipient.created_in(@year).each { |r| r.update_counts }
|
||||
end
|
||||
|
||||
desc 'Create School Questions'
|
||||
|
|
@ -904,3 +904,12 @@ end
|
|||
# end
|
||||
# end
|
||||
# end
|
||||
|
||||
# Question.created_in(2019).each do |question|
|
||||
# previous_year_question = Question.created_in(2018).find_by_external_id(question.external_id)
|
||||
# if previous_year_question.nil?
|
||||
# puts("No previous year question: #{question.external_id}")
|
||||
# previous_year_question = Question.created_in(2018).find_by_external_id("s-peff-q6")
|
||||
# end
|
||||
# question.update(category: previous_year_question.category)
|
||||
# end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue