diff --git a/app/controllers/people_controller.rb b/app/controllers/people_controller.rb index a2aa66f..c2d00b1 100644 --- a/app/controllers/people_controller.rb +++ b/app/controllers/people_controller.rb @@ -20,7 +20,7 @@ def daily_activity date = parse_activity_date @profile_email = profile_email @activity_period = { type: :day, date: date } - load_activity_data(scope: messages_scope_for_date(date)) + load_activity_data(scope: messages_scope_for_date(date), year: date.year) render :activity end diff --git a/app/controllers/teams_profile_controller.rb b/app/controllers/teams_profile_controller.rb index b7fae17..8780c21 100644 --- a/app/controllers/teams_profile_controller.rb +++ b/app/controllers/teams_profile_controller.rb @@ -17,7 +17,7 @@ def contributions def daily_activity date = parse_activity_date @activity_period = { type: :day, date: date } - load_activity_data(scope: messages_scope_for_date(date)) + load_activity_data(scope: messages_scope_for_date(date), year: date.year) render :activity end