Skip to content

Commit

Permalink
Fix and, or priority
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Aug 12, 2023
1 parent a893410 commit 0699012
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scan_to_paperless/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -1145,10 +1145,8 @@ def _update_config(config: schema.Configuration) -> None:
)
del old_config["args"]["crop"]["threshold_value_c"]
# empty: null => empty.enabled: false
if (
"empty" in old_config["args"]
and old_config["args"]["empty"] is True
or old_config["args"]["empty"] is False
if "empty" in old_config["args"] and (
old_config["args"]["empty"] is True or old_config["args"]["empty"] is False
):
config["args"]["empty"] = {"enabled": old_config["args"]["empty"]}
if "empty" in old_config["args"] and old_config["args"]["empty"] is None:
Expand Down

0 comments on commit 0699012

Please # to comment.