Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix analyzer and long report templates #1196

Merged
merged 1 commit into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ def summary(self, raw):
has_threats = any(res.get("x_ic_indicated_threats") for res in raw["results"])
if has_threats:
taxonomies.append(self.build_taxonomy("malicious", "SEKOIA", self.service, value))
else;
taxonomies.append(self.build_taxonomy("safe", "SEKOIA", self.service, value))
else:
taxonomies.append(self.build_taxonomy("malicious", "SEKOIA", self.service, value))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
No results found
</div>
<h2 ng-if="content.results.length > 0">{{content.results.length}} Context(s)</h2>
<div ng-repeat="bundle in content.results track by 'id'">
<div ng-repeat="bundle in content.results track by bundle.id">
<h4>{{bundle.id}}</h4>
<div ng-if="bundle.objects.length > 0" ng-repeat="item in bundle.objects">
<div class="panel panel-info" ng-if="item.type !== 'relationship' && item.type !== 'marking-definition'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
No results found
</div>
<h2 ng-if="content.results.length > 0">{{content.results.length}} Indicator(s)</h2>
<div class="panel panel-info" ng-if="content.results.length > 0" ng-repeat="indicator in content.results track by 'id'">
<div class="panel panel-info" ng-if="content.results.length > 0" ng-repeat="indicator in content.results track by indicator.id">
<div class="panel-heading">
<strong>{{indicator.name | fang}}</strong>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
No results found
</div>
<h2 ng-if="content.results.length > 0">{{content.results.length}} Observable(s)</h2>
<div class="panel panel-info" ng-if="content.results.length > 0" ng-repeat="observable in content.results track by 'id'">
<div class="panel panel-info" ng-if="content.results.length > 0" ng-repeat="observable in content.results track by observable.id">
<div class="panel-heading">
<strong>{{observable.x_inthreat_short_display | fang}}</strong>
</div>
Expand Down