fix tests

This commit is contained in:
Sina Atalay 2023-10-07 21:18:54 +02:00
parent 2302ca6c4c
commit de65b89153
1 changed files with 4 additions and 1 deletions

View File

@ -1023,7 +1023,10 @@ class CurriculumVitae(BaseModel):
for custom_section in model.custom_sections:
custom_section_names.append(custom_section.title)
section_names = pre_defined_section_names + custom_section_names
section_names = pre_defined_section_names + custom_section_names
else:
section_names = pre_defined_section_names
seen = set()
duplicates = {val for val in section_names if (val in seen or seen.add(val))}
if len(duplicates) > 0: