Skip to content

Commit

Permalink
Merge pull request #170 from ptcNOP/fix/impfuzzy
Browse files Browse the repository at this point in the history
Remove some fields from impfuzzy report
  • Loading branch information
ptcNOP authored Dec 21, 2018
2 parents 9438c40 + b9d4663 commit 84a7bf5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions multiscanner/distributed/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,8 @@ def _pre_process(report_dict={}):
executed on report_dict.
'''

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

if report_dict.get('Report', {}).get('impfuzzy', {}):
for k in ['chunksize', 'chunk', 'double_chunk']:
try:
report_dict['Report']['impfuzzy'].pop(k)
except KeyError as e:
pass

report_dict = _add_links(report_dict)

return report_dict
Expand Down

0 comments on commit 84a7bf5

Please sign in to comment.