From a8097046f5229a4611b8bea4acdc5b3ba8ef2f83 Mon Sep 17 00:00:00 2001 From: Ilya Zhuravlev Date: Sun, 4 Jul 2021 09:20:39 -0400 Subject: [PATCH] ci_vial_verify_uid: fix when keyboard has several vial keymaps --- util/ci_vial_verify_uid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/ci_vial_verify_uid.py b/util/ci_vial_verify_uid.py index 0a6a5d477a..a07cb24de5 100755 --- a/util/ci_vial_verify_uid.py +++ b/util/ci_vial_verify_uid.py @@ -9,7 +9,7 @@ from collections import defaultdict def main(): error = 0 - uid_to_keyboards = defaultdict(list) + uid_to_keyboards = defaultdict(set) for filename in glob("keyboards/**/vial.json", recursive=True): keyboard = filename[10:-10].split("/keymaps/")[0] @@ -38,7 +38,7 @@ def main(): uid = uid[0].split(",") uid = [int(x, 16) for x in uid] uid = struct.pack("BBBBBBBB", *uid).hex() - uid_to_keyboards[uid].append(keyboard) + uid_to_keyboards[uid].add(keyboard) print("{} uses UID {}".format(keyboard, uid))