From 2080d44bdb9631d9684e30fcfb8b82fee664ff67 Mon Sep 17 00:00:00 2001 From: xiaoxiaoqiong Date: Wed, 6 Jul 2022 10:00:12 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E7=AB=9E=E8=B5=9B=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E6=8E=A8=E8=8D=90=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/home/competitions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/home/competitions_controller.rb b/app/controllers/home/competitions_controller.rb index bc6ada53e..da9c674cc 100644 --- a/app/controllers/home/competitions_controller.rb +++ b/app/controllers/home/competitions_controller.rb @@ -1,6 +1,6 @@ class Home::CompetitionsController < ApplicationController def index - @competitions = Competition.active.order(start_time: :desc).limit(3) + @competitions = Competition.active.where(show_index: true).order(start_time: :desc).limit(3) end end \ No newline at end of file