From 362e5b2f0ede50df10ab0ee5d69dffed37ee9754 Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Sat, 28 Feb 2026 11:55:21 +0200 Subject: [PATCH] fix(datasheet): handle artwork insertion when projects < artwork count --- documentation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/documentation.py b/documentation.py index 7b2fe82..04b53ca 100644 --- a/documentation.py +++ b/documentation.py @@ -129,7 +129,9 @@ class Docs: if total_available_art is not None: if total_available_art > 0: - insert_art_after = math.floor(len(self.projects) / total_available_art) + insert_art_after = max( + 1, math.floor(len(self.projects) / total_available_art) + ) temp_subtile_projects = {} for project in tapeout_index: