Skip to content

Commit 840f633

Browse files
committed
Correct a typo.
This affected whether we checked with the user if a plan was not comprehensive for all images.
1 parent 3ca12c3 commit 840f633

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

imagedephi/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
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\nThe 'strict' profile currently only supports tiff and svs files, and will "
64+
" program.\n\nThe 'strict' profile currently only supports tiff and svs files, and will"
6565
" keep only metadata necessary to conform to the tiff standard.\n\nThe 'dates' profile will"
6666
" fuzz dates and times by setting to January 1st or midnight.\n\nThe 'default' profile uses"
6767
" our standard base rules, and is the default profile used.",

imagedephi/redact/redact.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)