From 2399f0056d7774937ed47a8e7531d4dfd90a7173 Mon Sep 17 00:00:00 2001 From: Cat Tom Date: Tue, 9 Dec 2025 16:29:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=9F=E6=9C=AB-=E5=85=A8=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E8=89=BA=E6=9C=AF=E8=AF=84=E5=88=86=E7=B3=BB=E7=BB=9F-2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Finnal/AutoArtRatingSystem.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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