From 81dd91f857462c788424a31ed897b382b18274c4 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Sat, 26 Oct 2019 09:52:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=9E=E8=B5=9B=E7=9A=84=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/competitions/competitions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/competitions/competitions_controller.rb b/app/controllers/competitions/competitions_controller.rb index 18e5bb371..167fe066c 100644 --- a/app/controllers/competitions/competitions_controller.rb +++ b/app/controllers/competitions/competitions_controller.rb @@ -13,7 +13,7 @@ class Competitions::CompetitionsController < Competitions::BaseController competitions = case params[:category] when 'nearly_published' then competitions.where(status: false) - when 'progressing' then competitions.where('end_time > NOW()') + when 'progressing' then competitions.where('status = 0 and end_time > NOW()') when 'ended' then competitions.where('end_time < NOW()') else competitions end