diff --git a/app/queries/admins/shixun_settings_query.rb b/app/queries/admins/shixun_settings_query.rb index 830801407..209f37788 100644 --- a/app/queries/admins/shixun_settings_query.rb +++ b/app/queries/admins/shixun_settings_query.rb @@ -53,7 +53,7 @@ class Admins::ShixunSettingsQuery < ApplicationQuery all_shixuns = all_shixuns.where(vip: params[:vip]) if params[:vip] if params[:no_subject] shixun_ids = StageShixun.pluck(:shixun_id).uniq - all_shixuns = all_shixuns.where.not(id: shixun_ids) + all_shixuns = all_shixuns.published.where.not(id: shixun_ids) end custom_sort(all_shixuns, params[:sort_by], params[:sort_direction]) diff --git a/app/views/admins/shixun_settings/index.html.erb b/app/views/admins/shixun_settings/index.html.erb index 37261eec7..a3d7dff4a 100644 --- a/app/views/admins/shixun_settings/index.html.erb +++ b/app/views/admins/shixun_settings/index.html.erb @@ -74,7 +74,7 @@