From ce03251c722a878df4ea7cc349bbc22baf742830 Mon Sep 17 00:00:00 2001 From: Bertocq Date: Tue, 17 Oct 2017 23:15:14 +0200 Subject: [PATCH] Filter officing results officer assigments to current date --- app/controllers/officing/results_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/officing/results_controller.rb b/app/controllers/officing/results_controller.rb index e1b6978f9..50d049549 100644 --- a/app/controllers/officing/results_controller.rb +++ b/app/controllers/officing/results_controller.rb @@ -104,7 +104,7 @@ class Officing::ResultsController < Officing::BaseController final. where(id: current_user.poll_officer.officer_assignment_ids). where("poll_booth_assignments.poll_id = ?", @poll.id). - order(date: :asc) + where(date: Date.current) end def load_partial_results