mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-02 20:26:10 +01:00
fix(datasheet): handle artwork insertion when projects < artwork count
This commit is contained in:
+3
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user