diff --git a/app/bridge.py b/app/bridge.py index fdadc3d..769616e 100644 --- a/app/bridge.py +++ b/app/bridge.py @@ -617,6 +617,7 @@ class PrinterWorker: b["remaining"] = target b["pending"] = None b["last"] = {"time": self.bridge.clock(), "grams": round(grams, 3), "details": details.removeprefix(" – ")} + self.bridge.spool_cache.pop(b.get("spoolman"), None) # show Spoolman's new rest at once if log_time is not None: b["log_time"] = max(b.get("log_time") or 0.0, log_time) self.bridge.state.save() @@ -1182,6 +1183,7 @@ class Bridge: continue if done: applied[str(sid)] = t + self.spool_cache.pop(sid, None) # the status page shows the new place at once if t["location"] != storage["location"]: written = set(self.state.data["written_locations"]) | {t["location"]} self.state.data["written_locations"] = sorted(written)