|
@@ -202,7 +202,7 @@ class CardScorer:
|
|
|
# 多次修改
|
|
# 多次修改
|
|
|
# if defect["new_score"] != the_score:
|
|
# if defect["new_score"] != the_score:
|
|
|
# defect["score"] = defect["new_score"]
|
|
# defect["score"] = defect["new_score"]
|
|
|
- if defect.get("edit_type") == "edit":
|
|
|
|
|
|
|
+ if defect.get("edit_type") == "edit" or defect.get("edit_type") == "add":
|
|
|
defect["new_score"] = the_score
|
|
defect["new_score"] = the_score
|
|
|
elif defect.get("edit_type") == "del":
|
|
elif defect.get("edit_type") == "del":
|
|
|
logger.info(f"del {defect_type} 补回: {the_score}")
|
|
logger.info(f"del {defect_type} 补回: {the_score}")
|