Skip to content

Commit 84a7bf5

Browse files
authored
Merge pull request #170 from ptcNOP/fix/impfuzzy
Remove some fields from impfuzzy report
2 parents 9438c40 + b9d4663 commit 84a7bf5

File tree

1 file changed

+9
-0
lines changed
  • multiscanner/distributed

1 file changed

+9
-0
lines changed

multiscanner/distributed/api.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,8 @@ def _pre_process(report_dict={}):
588588
executed on report_dict.
589589
'''
590590

591+
# TODO: create way to mark certain data as internal only (e.g., does
592+
# not need to be part of generated report)
591593
# pop unecessary keys
592594
if report_dict.get('Report', {}).get('ssdeep', {}):
593595
for k in ['chunksize', 'chunk', 'double_chunk']:
@@ -596,6 +598,13 @@ def _pre_process(report_dict={}):
596598
except KeyError as e:
597599
pass
598600

601+
if report_dict.get('Report', {}).get('impfuzzy', {}):
602+
for k in ['chunksize', 'chunk', 'double_chunk']:
603+
try:
604+
report_dict['Report']['impfuzzy'].pop(k)
605+
except KeyError as e:
606+
pass
607+
599608
report_dict = _add_links(report_dict)
600609

601610
return report_dict

0 commit comments

Comments
 (0)