From 0fd7766db3fabbf0416a37c8b30b2ecbc1049fb8 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Fri, 28 Mar 2025 14:14:27 +0100 Subject: [PATCH] Fix color-switching code which only worked until 27/03 --- conanfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conanfile.py b/conanfile.py index 9e1bc26239..28f45e7c24 100644 --- a/conanfile.py +++ b/conanfile.py @@ -570,9 +570,9 @@ class CuraConan(ConanFile): print(f"Could not find '{str(test_colors_path)}'. Won't generate rotating colors for alpha builds.") return if "alpha" in self.version: - biweekly_day = (datetime.now() - datetime(2025, 3, 14)).days with test_colors_path.open("r") as test_colors_file: test_colors = json.load(test_colors_file) + biweekly_day = (datetime.now() - datetime(2025, 3, 14)).days % len(test_colors) for theme_dir in Path(self.source_folder, "resources", "themes").iterdir(): if not theme_dir.is_dir(): continue