From 3720db18d04b2f48b917b211ab615bf337de42c3 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sat, 7 Oct 2023 21:18:54 +0200 Subject: [PATCH] fix tests --- rendercv/data_model.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rendercv/data_model.py b/rendercv/data_model.py index c91c7a58..3592a3a2 100644 --- a/rendercv/data_model.py +++ b/rendercv/data_model.py @@ -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: