Skip to content

Commit

Permalink
[fix] list extend not append (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias authored Mar 28, 2024
1 parent 553eefa commit 0fab4aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fixbackend/inventory/inventory_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ async def resource(self, db: GraphDatabaseAccess, resource_id: NodeId) -> Json:
check_ids = [sc["check"] for sc in (value_in_path(resource, ["security", "issues"]) or [])]
ignored_checks = value_in_path(resource, ["metadata", "security_ignore"])
if isinstance(ignored_checks, list):
check_ids.append(ignored_checks)
check_ids.extend(ignored_checks)
checks = await self.client.checks(db, check_ids=check_ids) if check_ids else []
checks = sorted(checks, key=lambda x: ReportSeverityPriority[x.get("severity", "info")], reverse=True)
return dict(resource=resource, checks=checks)
Expand Down

0 comments on commit 0fab4aa

Please sign in to comment.