|
|
|
@ -9,7 +9,8 @@ class Competitions::CompetitionsController < Competitions::BaseController
|
|
|
|
|
|
|
|
|
|
def index
|
|
|
|
|
# 已上架 或者 即将上架
|
|
|
|
|
competitions = current_laboratory.competitions.where(status: true).or(Competition.where.not(published_at: nil))
|
|
|
|
|
competitions = current_laboratory.competitions
|
|
|
|
|
competitions = competitions.where(status: true).or(competitions.where.not(published_at: nil))
|
|
|
|
|
|
|
|
|
|
competitions =
|
|
|
|
|
case params[:category]
|
|
|
|
|