From 0b800ee35557ab2cf64680772e96c3d1057ea104 Mon Sep 17 00:00:00 2001 From: "jonathan.kerr" <3410350+jonodrew@users.noreply.github.com> Date: Thu, 26 Feb 2026 11:57:14 +0000 Subject: [PATCH] Include today's events This tweaks the DashboardController to include today's events in upcoming. TODO: change the 'upcoming' method to include today, but check first to confirm if that is indeed the behaviour we want Signed-off-by: jonathan.kerr <3410350+jonodrew@users.noreply.github.com> --- app/controllers/dashboard_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb index dbfbc0487..03a9cbb8f 100644 --- a/app/controllers/dashboard_controller.rb +++ b/app/controllers/dashboard_controller.rb @@ -58,7 +58,7 @@ def top_coach_query def upcoming_events workshops = Workshop.eager_load(:chapter, :sponsors, :organisers, :permissions) - .upcoming + .today_and_upcoming .limit(MAX_WORKSHOP_QUERY) .to_a sorted_events = all_events(workshops).sort_by(&:date_and_time)