From db83d803f87011c113a3d1798af8e04497390a56 Mon Sep 17 00:00:00 2001 From: Lee Salminen Date: Sun, 21 Aug 2022 07:32:11 -0600 Subject: [PATCH] add .upper() to other side of the condition --- lnbits/extensions/boltcards/views_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/extensions/boltcards/views_api.py b/lnbits/extensions/boltcards/views_api.py index 5611d5b74..151aebcb6 100644 --- a/lnbits/extensions/boltcards/views_api.py +++ b/lnbits/extensions/boltcards/views_api.py @@ -145,7 +145,7 @@ async def api_scane(p, c, request: Request): try: card_uid, counter = decryptSUN(bytes.fromhex(p), bytes.fromhex(cand.k1)) - if card_uid.hex().upper() == cand.uid: + if card_uid.hex().upper() == cand.uid.upper(): card = cand break except: