mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-13 00:02:09 +00:00
feat: enhance dashboard display with conditional ETA formatting
This commit is contained in:
+10
-4
@@ -413,10 +413,16 @@ def put_arg_planner(kwargs: T_Output_Kwargs) -> Output | None:
|
|||||||
if isinstance(total, dict):
|
if isinstance(total, dict):
|
||||||
total = tuple(total.values())
|
total = tuple(total.values())
|
||||||
|
|
||||||
row = put_scope(f"arg_stored-stored-value-{name}", [
|
if eta:
|
||||||
put_text(f"{progress:.2f}%").style("--dashboard-bold--"),
|
row = put_scope(f"arg_stored-stored-value-{name}", [
|
||||||
put_text(f"{value} / {total}{eta}").style("--dashboard-time--"),
|
put_text(f"{progress:.2f}%").style("--dashboard-bold--"),
|
||||||
])
|
put_text(f"{value} / {total}{eta}").style("--dashboard-time--"),
|
||||||
|
])
|
||||||
|
else:
|
||||||
|
row = put_scope(f"arg_stored-stored-value-{name}", [
|
||||||
|
put_text(f"{progress:.2f}%").style("--dashboard-value--"),
|
||||||
|
put_text(f"{value} / {total}").style("--dashboard-time--"),
|
||||||
|
])
|
||||||
|
|
||||||
return put_scope(
|
return put_scope(
|
||||||
f"arg_container-planner-{name}",
|
f"arg_container-planner-{name}",
|
||||||
|
|||||||
Reference in New Issue
Block a user