diff options
Diffstat (limited to 'site/app/controllers/users_controller.rb')
-rw-r--r-- | site/app/controllers/users_controller.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/site/app/controllers/users_controller.rb b/site/app/controllers/users_controller.rb index fa077fe..4fd360c 100644 --- a/site/app/controllers/users_controller.rb +++ b/site/app/controllers/users_controller.rb @@ -17,4 +17,12 @@ class UsersController < ApplicationController def voters render :json => ::Agenda.voters end + + def current_council_slacking + start = CustomConfig['CouncilTerm']['start_time'] + stop = Agenda.current.meeting_time - 1.minute + @slackings = ::User.council_member_is(true).collect do |user| + [user.name, user.slacking_status_in_period(start, stop)] + end + end end |