期末-全自动艺术评分系统-2
This commit is contained in:
@@ -177,13 +177,17 @@ class AutoRatingApp:
|
|||||||
piece_id, scores = data
|
piece_id, scores = data
|
||||||
self.rating_system.scores[piece_id] = scores
|
self.rating_system.scores[piece_id] = scores
|
||||||
|
|
||||||
|
# 关键修复:添加数据后立即计算有效得分
|
||||||
|
self.rating_system.auto_calculate()
|
||||||
|
|
||||||
# 更新表格显示
|
# 更新表格显示
|
||||||
|
effective_score = self.rating_system.effective_scores.get(piece_id, "计算中...")
|
||||||
self.tree.insert(
|
self.tree.insert(
|
||||||
"", "end",
|
"", "end",
|
||||||
values=(
|
values=(
|
||||||
piece_id,
|
piece_id,
|
||||||
", ".join(map(str, scores)),
|
", ".join(map(str, scores)),
|
||||||
self.rating_system.effective_scores.get(piece_id, "计算中...")
|
effective_score
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user