From 0699012ecab33085967693b7ccb5e1b27b14c3cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Sat, 12 Aug 2023 14:46:29 +0200 Subject: [PATCH] Fix and, or priority --- scan_to_paperless/process.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scan_to_paperless/process.py b/scan_to_paperless/process.py index 5b833e33..f5d37c52 100755 --- a/scan_to_paperless/process.py +++ b/scan_to_paperless/process.py @@ -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: