diff --git a/Finnal/AutoArtRatingSystem.py b/Finnal/AutoArtRatingSystem.py index 972be09..e641ff1 100644 --- a/Finnal/AutoArtRatingSystem.py +++ b/Finnal/AutoArtRatingSystem.py @@ -177,13 +177,17 @@ class AutoRatingApp: piece_id, scores = data 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( "", "end", values=( piece_id, ", ".join(map(str, scores)), - self.rating_system.effective_scores.get(piece_id, "计算中...") + effective_score ) ) @@ -210,4 +214,4 @@ class AutoRatingApp: if __name__ == "__main__": root = tk.Tk() app = AutoRatingApp(root) - root.mainloop() + root.mainloop() \ No newline at end of file