mirror of
https://github.com/lnbits/lnbits.git
synced 2025-07-14 23:12:42 +02:00
add .upper() to other side of the condition
This commit is contained in:
@ -145,7 +145,7 @@ async def api_scane(p, c, request: Request):
|
|||||||
try:
|
try:
|
||||||
card_uid, counter = decryptSUN(bytes.fromhex(p), bytes.fromhex(cand.k1))
|
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
|
card = cand
|
||||||
break
|
break
|
||||||
except:
|
except:
|
||||||
|
Reference in New Issue
Block a user