This commit is contained in:
Lee Salminen
2022-08-21 09:02:20 -06:00
parent 4242a82029
commit 9dd7d30716
2 changed files with 6 additions and 2 deletions
+2
View File
@@ -82,6 +82,7 @@ async def get_card(card_id: str) -> Optional[Card]:
return Card.parse_obj(card)
async def get_card_by_uid(card_uid: str) -> Optional[Card]:
row = await db.fetchone("SELECT * FROM boltcards.cards WHERE uid = ?", (card_uid,))
if not row:
@@ -91,6 +92,7 @@ async def get_card_by_uid(card_uid: str) -> Optional[Card]:
return Card.parse_obj(card)
async def get_card_by_otp(otp: str) -> Optional[Card]:
row = await db.fetchone("SELECT * FROM boltcards.cards WHERE otp = ?", (otp,))
if not row: