实训作业调分接口调整

issues25489
cxt 6 years ago
parent 12f2e65cd2
commit b69ea499fe

@ -7,7 +7,7 @@ if @shixun
json.shixun_name @shixun.name
# 总体评价
json.overall_appraisal @work.overall_appraisal
json.myself_experience @work.myshixun.try(:total_score)
json.myself_experience @work.myshixun.try(:total_score).to_i
json.total_experience @shixun.all_score
json.work_score number_with_precision @work.work_score, precision: 1
json.all_work_score number_with_precision 100, precision: 1
@ -28,7 +28,7 @@ if @shixun
json.is_delay game ? student_work_is_delay?(@homework, game) : false
json.open_time myshixun_open_time game
json.evaluate_count game ? game&.evaluate_count : 0
json.finished_time game ? finished_time game.end_time : "--"
json.finished_time game ? finished_time(game.end_time) : "--"
json.time_consuming time_consuming game
json.myself_experience game ? game&.final_score : 0
json.experience challenge.all_score

Loading…
Cancel
Save