1
0
mirror of synced 2025-02-17 11:18:33 +01:00

Additional card tweaks.

This commit is contained in:
Jennifer Taylor 2024-04-21 00:44:40 +00:00
parent c15ca02731
commit d4ce00a5fc

View File

@ -31,7 +31,7 @@ class CardCipher:
def __type_from_cardid(cardid: str) -> int: def __type_from_cardid(cardid: str) -> int:
if cardid[:4].upper() == "E004": if cardid[:4].upper() == "E004":
return 1 return 1
if cardid[:2].upper() == "0": if cardid[:1] == "0":
return 2 return 2
raise CardCipherException("Unrecognized card type") raise CardCipherException("Unrecognized card type")