Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun
commit
45985cbd0e
@ -0,0 +1,18 @@
|
||||
class ChangeExericse1936Scores < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
#1936的试卷成绩有问题。
|
||||
# #https://www.educoder.net/courses/2935/exercises/1936/users/pizfnr5ts
|
||||
ex_special = Exercise.find_by_id(1936)
|
||||
ex_special_users = ex_special.exercise_users.exercise_user_committed.where("end_at is not null and end_at > ?",Time.now - 2.months)
|
||||
if ex_special.present? && ex_special_users.exists?
|
||||
ex_special_users.each do |ex_user|
|
||||
calculate_score = calculate_student_score(ex_special,ex_user.user)[:total_score]
|
||||
subjective_score = ex_user.subjective_score
|
||||
total_score_subjective_score = subjective_score < 0.0 ? 0.0 : subjective_score
|
||||
total_score = calculate_score + total_score_subjective_score
|
||||
ex_user.update_attributes(score:total_score,objective_score:calculate_score)
|
||||
puts ex_user.id
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
@ -1,72 +1,80 @@
|
||||
.studentList_operation_ul{
|
||||
color: #999;
|
||||
font-size: 12px;
|
||||
float: right;
|
||||
margin-top: 2px;
|
||||
}
|
||||
.studentList_operation_ul li{
|
||||
float: left;
|
||||
padding:0px 20px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
flex: 0 0 26px;
|
||||
line-height: 26px;
|
||||
}
|
||||
.studentList_operation_ul li.li_line:after{
|
||||
position: absolute;
|
||||
content: '';
|
||||
width: 1px;
|
||||
height: 12px;
|
||||
background-color: #EDEDED;
|
||||
right: 0px;
|
||||
top:6px;
|
||||
}
|
||||
.studentList_operation_ul li:last-child{
|
||||
padding-right: 0px;
|
||||
}
|
||||
.studentList_operation_ul li:last-child:after{
|
||||
width: 0px;
|
||||
}
|
||||
|
||||
/* 基础的下拉列表、列如排序等 */
|
||||
.drop_down_normal li{
|
||||
padding: 0px 20px;
|
||||
height: 34px;
|
||||
line-height: 34px;
|
||||
min-width: 96px;
|
||||
color: #333;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.stu_table table{
|
||||
line-height: 1.2;
|
||||
}
|
||||
.stu_table .classesName{
|
||||
display: block;
|
||||
max-width: 428px;
|
||||
}
|
||||
.stu_table .ant-table-thead > tr > th{
|
||||
padding:21px 16px;
|
||||
border-bottom: none;
|
||||
}
|
||||
.stu_table .ant-table-tbody tr:last-child td{
|
||||
border-bottom: none;
|
||||
}
|
||||
.stu_table table .ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td{
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.stu_head{
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
.ant-modal-body{
|
||||
padding:30px 40px;
|
||||
}
|
||||
.color-dark-21{
|
||||
color: #212121;
|
||||
}
|
||||
.tabletd {
|
||||
background-color:#E6F7FF;
|
||||
}
|
||||
.studentList_operation_ul{
|
||||
color: #999;
|
||||
font-size: 12px;
|
||||
float: right;
|
||||
margin-top: 2px;
|
||||
}
|
||||
.studentList_operation_ul li{
|
||||
float: left;
|
||||
padding:0px 20px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
flex: 0 0 26px;
|
||||
line-height: 26px;
|
||||
}
|
||||
.studentList_operation_ul li.li_line:after{
|
||||
position: absolute;
|
||||
content: '';
|
||||
width: 1px;
|
||||
height: 12px;
|
||||
background-color: #EDEDED;
|
||||
right: 0px;
|
||||
top:6px;
|
||||
}
|
||||
.studentList_operation_ul li:last-child{
|
||||
padding-right: 0px;
|
||||
}
|
||||
.studentList_operation_ul li:last-child:after{
|
||||
width: 0px;
|
||||
}
|
||||
|
||||
/* 基础的下拉列表、列如排序等 */
|
||||
.drop_down_normal li{
|
||||
padding: 0px 20px;
|
||||
height: 34px;
|
||||
line-height: 34px;
|
||||
min-width: 96px;
|
||||
color: #333;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.stu_table table{
|
||||
line-height: 1.2;
|
||||
}
|
||||
.stu_table .classesName{
|
||||
display: block;
|
||||
max-width: 428px;
|
||||
}
|
||||
.stu_table .ant-table-thead > tr > th{
|
||||
padding:21px 16px;
|
||||
border-bottom: none;
|
||||
}
|
||||
.stu_table .ant-table-tbody tr:last-child td{
|
||||
border-bottom: none;
|
||||
}
|
||||
.stu_table table .ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td{
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.stu_head{
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
.ant-modal-body{
|
||||
padding:30px 40px;
|
||||
}
|
||||
.color-dark-21{
|
||||
color: #212121;
|
||||
}
|
||||
.tabletd {
|
||||
background-color:#E6F7FF;
|
||||
}
|
||||
|
||||
.yslminheigth{
|
||||
min-height: 20px;
|
||||
}
|
||||
|
||||
.yslminheigths{
|
||||
min-height: 21px;
|
||||
}
|
Loading…
Reference in new issue