Browse Source

Fixed bug where not all AMS spools were synced to Spoolman

maziggy 5 months ago
parent
commit
83fc278b75
2 changed files with 3 additions and 4 deletions
  1. 2 2
      backend/app/services/spoolman.py
  2. 1 2
      frontend/index.html

+ 2 - 2
backend/app/services/spoolman.py

@@ -439,9 +439,9 @@ class SpoolmanClient:
         if not tray_type or tray_type.strip() == "":
         if not tray_type or tray_type.strip() == "":
             return None
             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", "")
         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}")
             logger.debug(f"Skipping tray with invalid color: {tray_color}")
             return None
             return None
 
 

+ 1 - 2
frontend/index.html

@@ -7,10 +7,9 @@
     <link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png" />
     <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="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png" />
     <link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.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>
   </head>
   <body>
   <body>
     <div id="root"></div>
     <div id="root"></div>
+    <script type="module" src="/src/main.tsx"></script>
   </body>
   </body>
 </html>
 </html>