标段查询接口增加水准防重
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user