课程报500

This commit is contained in:
daiao 2018-02-09 15:42:43 +08:00
parent 08433fba31
commit 2f59564a40
1 changed files with 1 additions and 1 deletions

View File

@ -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
# 用户待匿评的作品