|
|
@@ -130,7 +130,9 @@ class CardScorer:
|
|
|
if defect.get("edit_type") == "edit" or defect.get("edit_type") == "add":
|
|
|
defect["new_score"] = the_score
|
|
|
elif defect.get("edit_type") == "del":
|
|
|
+ logger.info(f"del {defect_type} 补回: {the_score}")
|
|
|
defect["new_score"] = 0
|
|
|
+ weighted_scores[defect_type] -= the_score
|
|
|
|
|
|
elif "score" in defect and defect["new_score"] is not None:
|
|
|
# 多次修改
|
|
|
@@ -139,7 +141,9 @@ class CardScorer:
|
|
|
if defect.get("edit_type") == "edit":
|
|
|
defect["new_score"] = the_score
|
|
|
elif defect.get("edit_type") == "del":
|
|
|
+ logger.info(f"del {defect_type} 补回: {the_score}")
|
|
|
defect["new_score"] = 0
|
|
|
+ weighted_scores[defect_type] -= the_score
|
|
|
else:
|
|
|
defect['score'] = the_score
|
|
|
defect["new_score"] = None
|