Skip to content
Snippets Groups Projects
Commit e6dd5f3b authored by Gary O'Donovan's avatar Gary O'Donovan Committed by James Arcus
Browse files

Fix ALREADY ENROLLED errors when adding new cards

parent 1ffab849
Branches
Tags
1 merge request!2Fix ALREADY ENROLLED errors when adding new cards
...@@ -178,7 +178,7 @@ class OpenDispense(DispenseInterface): ...@@ -178,7 +178,7 @@ class OpenDispense(DispenseInterface):
if not self.isLoggedIn(): if not self.isLoggedIn():
return False return False
card_base64 = base64.b64encode(cardId) card_base64 = base64.b64encode(cardId).decode('utf-8')
if card_base64 in CARD_BLACKLIST: if card_base64 in CARD_BLACKLIST:
logging.info("Blacklisted card base64:%s" % (card_base64,)) logging.info("Blacklisted card base64:%s" % (card_base64,))
return False return False
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment