|
|
|
@ -36,8 +36,8 @@ class Users::QuestionBanksController < Users::BaseController
|
|
|
|
|
.group('graduation_tasks.gtask_bank_id').count
|
|
|
|
|
when 'gtopic' then
|
|
|
|
|
StudentGraduationTopic.joins(:graduation_topic)
|
|
|
|
|
.where(gtopic_banks: { gtopic_bank_id: question_bank_ids }).where('status != 0')
|
|
|
|
|
.group('gtopic_banks.gtopic_bank_id').count
|
|
|
|
|
.where(graduation_topics: { gtopic_bank_id: question_bank_ids }).where('status != 0')
|
|
|
|
|
.group('graduation_topics.gtopic_bank_id').count
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|