From e6dd5f3b88aa435f509ef69e34909c23bb1921a9 Mon Sep 17 00:00:00 2001 From: Gary O'Donovan <zixty@ucc.asn.au> Date: Thu, 3 Aug 2023 20:14:55 +0800 Subject: [PATCH] Fix ALREADY ENROLLED errors when adding new cards --- VendServer/OpenDispense.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VendServer/OpenDispense.py b/VendServer/OpenDispense.py index c42f235..d227c1c 100644 --- a/VendServer/OpenDispense.py +++ b/VendServer/OpenDispense.py @@ -178,7 +178,7 @@ class OpenDispense(DispenseInterface): if not self.isLoggedIn(): return False - card_base64 = base64.b64encode(cardId) + card_base64 = base64.b64encode(cardId).decode('utf-8') if card_base64 in CARD_BLACKLIST: logging.info("Blacklisted card base64:%s" % (card_base64,)) return False -- GitLab