From a3ddeb8e09ac0199826e214e8690cf9db6fe7b25 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 30 Sep 2021 16:19:46 -0700 Subject: [PATCH] Improve needs_rewrite detection. --- voussoirkit/configlayers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voussoirkit/configlayers.py b/voussoirkit/configlayers.py index 6b0ddd2..976d5b9 100644 --- a/voussoirkit/configlayers.py +++ b/voussoirkit/configlayers.py @@ -64,7 +64,7 @@ def layer_json(target, supply): ''' target_keys = recursive_dict_keys(target) supply_keys = recursive_dict_keys(supply) - needs_rewrite = target_keys > supply_keys + needs_rewrite = len(target_keys.difference(supply_keys)) > 0 recursive_dict_update(target=target, supply=supply) return (target, needs_rewrite)