add .upper() to other side of the condition

This commit is contained in:
Lee Salminen
2022-08-21 07:32:11 -06:00
parent 6898412e6c
commit db83d803f8

View File

@ -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: