Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sinaatalay committed Oct 7, 2023
1 parent ad4354c commit 3720db1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rendercv/data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,10 @@ def check_if_the_section_names_are_unique(self, model):
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:
Expand Down

0 comments on commit 3720db1

Please sign in to comment.