查重率的问题

dev_hjm
daiao 6 years ago
parent 9be7563fa2
commit ee70a023bd

@ -1478,9 +1478,11 @@ class HomeworkCommonsController < ApplicationController
code_list << {path: path, origin_content: info.origin_content, target_content: info.target_content}
end
end
copy_user_id = copy_user ? copy_user.id : "--"
copy_username = copy_user ? copy_user.full_name : "--"
{code_rate: code_rate, copy_user_id: copy_user.try(:id), end_time: end_time, final_score: final_score,
all_score: all_score, copy_end_time: copy_end_time, copy_username: copy_user.try(:full_name),
{code_rate: code_rate, copy_user_id: copy_user_id, end_time: end_time, final_score: final_score,
all_score: all_score, copy_end_time: copy_end_time, copy_username: copy_username,
username: game.user.full_name, code_list: code_list, subject: challenge.subject, position: challenge.position,
id: challenge.id}
end

Loading…
Cancel
Save