From fae8a7dcf105be96089fd6f7abdd72ea970cf045 Mon Sep 17 00:00:00 2001 From: Makadi Date: Fri, 7 Mar 2025 12:46:48 +0200 Subject: [PATCH] fix styles duplicate names --- backend/shared.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/shared.py b/backend/shared.py index 6a66d49..4852480 100644 --- a/backend/shared.py +++ b/backend/shared.py @@ -97,7 +97,7 @@ styles = get_yaml_names(os.path.join(project_dir, "styles")) if allow_extra_styles: more_styles = get_yaml_names(os.path.join(project_dir, "styles", "more examples")) - styles += more_styles + styles.extend(x for x in more_styles if x not in styles) def read_styles(_yaml_data): if not isinstance(_yaml_data, list):