Fixed bug where not all AMS spools were synced to Spoolman

This commit is contained in:
maziggy
2025-12-10 10:02:11 +00:00
parent 53fcc2846f
commit 83fc278b75
2 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -439,9 +439,9 @@ class SpoolmanClient:
if not tray_type or tray_type.strip() == "":
return None
# Also need valid color to create filament (000000FF = unset/empty)
# Need valid color to create filament
tray_color = tray_data.get("tray_color", "")
if not tray_color or tray_color in ("", "000000FF", "00000000"):
if not tray_color or tray_color in ("", "00000000"):
logger.debug(f"Skipping tray with invalid color: {tray_color}")
return None
+1 -2
View File
@@ -7,10 +7,9 @@
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png" />
<script type="module" crossorigin src="/assets/index-DAltyj1x.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BYZOEJWU.css">
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>