Skip to content

Commit

Permalink
Add check
Browse files Browse the repository at this point in the history
  • Loading branch information
entantoencuanto committed Dec 2, 2024
1 parent 3e6bd51 commit 1b7982f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def load_calculations
rules_headers = calculations.headers.grep(/ - \d+/)
counts = rules_headers.index_with { |rule_header| calculations.count { |row| row[rule_header].to_i.positive? } }

@calculations_path = calculations_path
@threshold_detected_cases = calculations.count { |row| row["total_score"].to_i >= current_config.threshold }
@scores_counts = counts.transform_keys { |k| k.split(" - ").last.to_i }
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<th><%= t(".headers.allowlist") %></th>
<th><%= t(".headers.blocklist") %></th>
<th><%= t(".headers.weight") %></th>
<th><%= t(".headers.count") %></th>
<th><%= t(".headers.count") %> - <%= @calculations_path %> </th>
<th class="actions"></th>
</tr>
</thead>
Expand Down

0 comments on commit 1b7982f

Please sign in to comment.