style(host-agent): format Console task submission files
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user