Include last day of poll in range for recount and scrutiny on officing panel

This commit is contained in:
Bertocq
2017-10-03 18:10:16 +02:00
parent 825671ad9b
commit 45831a0b68
2 changed files with 4 additions and 2 deletions

View File

@@ -7,7 +7,9 @@ class Officing::PollsController < Officing::BaseController
def final
@polls = if current_user.poll_officer?
current_user.poll_officer.final_days_assigned_polls.select {|poll| poll.ends_at > 2.weeks.ago && poll.expired?}
current_user.poll_officer.final_days_assigned_polls.select do |poll|
poll.ends_at > 2.weeks.ago && poll.expired? || poll.ends_at.today?
end
else
[]
end