feat: add favorite task templates and optimize evidence exports
This commit is contained in:
1 parent
e1ea099592
commit
a4a5430922
46 files changed
+1714
-188
No files matched your search
@@ -36,6 +36,22 @@ def register_submission(item: dict, case: dict | None = None, formats=None, **ex
|
||||
"status": "queued",
|
||||
"created_at": time.time(),
|
||||
"device_serial": item.get("device_serial"),
|
||||
"execution_config": item.get("execution_config"),
|
||||
"submission": {
|
||||
key: item.get(key)
|
||||
for key in (
|
||||
"goal",
|
||||
"profile",
|
||||
"device_serial",
|
||||
"runtime_overrides",
|
||||
"expected_output",
|
||||
"enable_outputter",
|
||||
"verification_level",
|
||||
"explorer_mode",
|
||||
"locked_app_package",
|
||||
"app_path",
|
||||
)
|
||||
},
|
||||
"formats": formats if formats is not None else store.preferences()["formats"],
|
||||
**extra,
|
||||
}
|
||||
@@ -391,7 +407,9 @@ def delete_batch(batch_id: str) -> bool:
|
||||
return False
|
||||
storage = StorageManager(store.path, report_export.TRACES_PATH)
|
||||
mcp_exports = report_export.EXPORT_ROOT.parent / "mcp_exports"
|
||||
with report_export.EXPORT_LOCK:
|
||||
with report_export.export_lock(
|
||||
"batch:" + batch_id, *("session:" + j["session_id"] for j in jobs)
|
||||
):
|
||||
for job in jobs:
|
||||
session_id = str(UUID(job["session_id"]))
|
||||
storage.delete_session(UUID(session_id))
|
||||
|
||||
Reference in new issue
Block a user