From 6922423dcfe49f4f12d4f217db6de49cae7e919e Mon Sep 17 00:00:00 2001 From: lhx Date: Fri, 7 Nov 2025 17:24:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E6=AE=B5=E6=9F=A5=E8=AF=A2=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=A2=9E=E5=8A=A0=E6=B0=B4=E5=87=86=E9=98=B2=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/comprehensive.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/services/comprehensive.py b/app/services/comprehensive.py index bbffe6b..4693c64 100644 --- a/app/services/comprehensive.py +++ b/app/services/comprehensive.py @@ -379,7 +379,9 @@ class ComprehensiveDataService: for nyid in section_nyids: if nyid in level_data_by_nyid: for ld in level_data_by_nyid[nyid]: - section_level_data.append(ld.to_dict()) + # 防止重复 + if ld.to_dict() not in section_level_data: + section_level_data.append(ld.to_dict()) section_dict["checkpoints"] = checkpoints_data section_dict["level_data"] = section_level_data