File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 6161 "--profile" ,
6262 type = click .Choice ([choice .value for choice in ProfileChoice ], case_sensitive = False ),
6363 help = "Select a redaction profile. This determines the base rule set used for a run of the"
64- " program.\n \n The 'strict' profile currently only supports tiff and svs files, and will "
64+ " program.\n \n The 'strict' profile currently only supports tiff and svs files, and will"
6565 " keep only metadata necessary to conform to the tiff standard.\n \n The 'dates' profile will"
6666 " fuzz dates and times by setting to January 1st or midnight.\n \n The 'default' profile uses"
6767 " our standard base rules, and is the default profile used." ,
Original file line number Diff line number Diff line change @@ -391,10 +391,11 @@ def show_redaction_plan(
391391 logger .setLevel (logging .DEBUG )
392392
393393 global tags_used
394+ global missing_rules
395+ missing_rules = False
394396
395397 def _create_redaction_plan_report ():
396398 global missing_rules
397- missing_rules = False
398399 global unprocessable_image_messages
399400 unprocessable_image_messages = []
400401 with logging_redirect_tqdm (loggers = [logger ]):
@@ -422,8 +423,8 @@ def _create_redaction_plan_report():
422423 continue
423424 logger .info (f"Redaction plan for { image_path .name } :" )
424425 redaction_plan_report .update (redaction_plan .report_plan ()) # type: ignore
425- if not redaction_plan .is_comprehensive ():
426- missing_rules = True
426+ if not redaction_plan .is_comprehensive ():
427+ missing_rules = True
427428
428429 if not update :
429430 global redaction_plan_report
You can’t perform that action at this time.
0 commit comments