diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 1fc455bd7..c1fb7da58 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -2110,7 +2110,7 @@ class UsersController < ApplicationController exercise_users = ExerciseUser.where(:user_id => @user.id, :exercise_id => exercises.map{|ex| ex.id}) @unfinished_test_count = exercises.count - exercise_users.count # 用户待完成的问卷 - polls = Poll.where("polls_type = 'Course' and course_id in #{my_course_ids} and polls_status = 2") + polls = Poll.where("polls_type = 'Course' and polls_group_id in #{my_course_ids} and polls_status = 2") poll_users = PollUser.where(:user_id => @user.id, :poll_id => polls.map{|poll| poll.id}) @unfinished_poll_count = polls.count - poll_users.count # 用户待匿评的作品