style(host-agent): format Console task submission files

This commit is contained in:
2026-07-14 17:52:35 +08:00
parent a46f7d02a1
commit a883903b66
3 changed files with 14 additions and 23 deletions
+2 -6
View File
@@ -492,9 +492,7 @@ def create_console_app(
"title": "Tasks",
"session": session,
"csrf_token": session.csrf_token,
"tasks": metadata_store.list_tasks()
if metadata_store is not None
else [],
"tasks": metadata_store.list_tasks() if metadata_store is not None else [],
"metadata_store_missing": metadata_store is None,
"devices": devices,
"automatic_device_value": AUTOMATIC_DEVICE_VALUE,
@@ -603,9 +601,7 @@ def create_console_app(
)
try:
response = await submit_self_task(
goal=goal, device_id=explicit_device_id
)
response = await submit_self_task(goal=goal, device_id=explicit_device_id)
except HostAgentAPIError as exc:
context = _tasks_list_context(
session,