add .upper() to other side of the condition
This commit is contained in:
parent
6898412e6c
commit
db83d803f8
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue