fix(datasheet): handle artwork insertion when projects < artwork count

This commit is contained in:
Uri Shaked
2026-02-28 11:55:21 +02:00
parent 6839bd1295
commit 362e5b2f0e
+3 -1
View File
@@ -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: