Skip to content

Commit 8f27483

Browse files
author
Roberto
committed
Refactor: ran ruff formatter
1 parent 4892986 commit 8f27483

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

BlocksScreen/lib/panels/widgets/jobStatusPage.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def on_print_stats_update(self, field: str, value: dict | float | str) -> None:
268268
self.total_layers = value["total_layer"]
269269
if value["total_layer"] is not None:
270270
self.layer_display_button.secondary_text = str(self.total_layers)
271-
271+
272272
else:
273273
self.total_layers = "---"
274274
self.layer_fallback = True
@@ -313,7 +313,9 @@ def on_gcode_move_update(self, field: str, value: list) -> None:
313313
first_layer_height=first_layer_height,
314314
)
315315

316-
total_layer = (object_height ) / layer_height if layer_height > 0 else -1
316+
total_layer = (
317+
(object_height) / layer_height if layer_height > 0 else -1
318+
)
317319
self.layer_display_button.secondary_text = (
318320
f"{int(total_layer)}" if total_layer != -1 else "---"
319321
)

0 commit comments

Comments
 (0)