From f1c65ae12bdeaf76aad04ebf132742ca9a19cf0e Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Sat, 16 Jul 2022 10:51:13 +0200 Subject: [PATCH] Update. --- picoclvr.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/picoclvr.py b/picoclvr.py index 8771e21..80e5fd0 100755 --- a/picoclvr.py +++ b/picoclvr.py @@ -190,9 +190,11 @@ def nb_missing_properties(descr, height = 6, width = 8): d = d[0].strip().split('') d = [ x.strip() for x in d ] - missing_properties = set(d) - set(descr2properties(descr, height, width)) + requested_properties = set(d) + all_properties = set(descr2properties(descr, height, width)) + missing_properties = requested_properties - all_properties - return len(missing_properties) + return (len(requested_properties), len(all_properties), len(missing_properties)) ###################################################################### -- 2.39.5