Fixed a bug that resulted in a wrong detection colour within a detection/visibility overlay

master
Marcus Bakker 2020-10-16 09:46:36 +02:00
parent 23a0d1035f
commit 73a06de207
1 changed files with 2 additions and 0 deletions

View File

@ -322,6 +322,8 @@ def _map_and_colorize_techniques_for_overlaid(my_techniques, my_data_sources, pl
elif not detection and visibility: elif not detection and visibility:
s = visibility_score s = visibility_score
color = COLOR_V_1 if s == 1 else COLOR_V_2 if s == 2 else COLOR_V_3 if s == 3 else COLOR_V_4 if s == 4 else '' color = COLOR_V_1 if s == 1 else COLOR_V_2 if s == 2 else COLOR_V_3 if s == 3 else COLOR_V_4 if s == 4 else ''
elif detection_score == 0: # forensics/context
color = COLOR_D_0
else: else:
color = COLOR_WHITE color = COLOR_WHITE