Fix: Tolerate missing?

This commit is contained in:
Reid 'arrdem' McKenzie 2024-09-01 14:06:36 -06:00
parent 3065501f97
commit a6ee0440d0

View file

@ -87,7 +87,7 @@ def poll_printers(app: App, db: Db) -> None:
"reference": snapshots[0],
},
)
similarity = status["similarity"] ** 3 # Cube it
similarity = status.get("similarity", 0.0) ** 3 # Cube it
return similarity > 0.9
printer_job = {}