fixed 竞赛首页推荐控制

This commit is contained in:
xiaoxiaoqiong 2022-07-06 10:00:12 +08:00
parent 97c1da579e
commit 2080d44bdb
1 changed files with 1 additions and 1 deletions

View File

@ -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