perf: update automation report

This commit is contained in:
fit2bot
2025-03-17 10:31:49 +08:00
committed by GitHub
parent 7bac1b42e4
commit b7820c6a5b
8 changed files with 44 additions and 31 deletions

View File

@@ -63,8 +63,8 @@ class CheckAccountExecutionViewSet(AutomationExecutionViewSet):
if not asset_id:
return Response(status=400, data={"asset_id": "This field is required."})
get_object_or_404(Asset, pk=asset_id)
name = "Check asset risk: {}".format(asset_id)
asset = get_object_or_404(Asset, pk=asset_id)
name = "Check asset risk: {}".format(asset.name)
execution = AutomationExecution()
execution.snapshot = {
"assets": [asset_id],