|
|
@ -2,6 +2,7 @@ json.course_id course.id
|
|
|
|
json.course_name course.name
|
|
|
|
json.course_name course.name
|
|
|
|
json.is_end course.is_end
|
|
|
|
json.is_end course.is_end
|
|
|
|
json.category homework.category_info
|
|
|
|
json.category homework.category_info
|
|
|
|
|
|
|
|
json.main_category homework.main_category_info if homework.homework_type == "practice"
|
|
|
|
member = course.course_members.find_by(user_id: user.id, is_active: 1)
|
|
|
|
member = course.course_members.find_by(user_id: user.id, is_active: 1)
|
|
|
|
curr_status = homework_curr_status(homework, user.course_identity(course), course, member, member&.teacher_course_groups)
|
|
|
|
curr_status = homework_curr_status(homework, user.course_identity(course), course, member, member&.teacher_course_groups)
|
|
|
|
json.homework_status curr_status[:status]
|
|
|
|
json.homework_status curr_status[:status]
|
|
|
|