File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments