From 8a99f94c93bac0f3f922cce2a4c410bc1bb0d63f Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Tue, 9 Jan 2024 19:10:39 -0500 Subject: [PATCH] aimedb: fix felica lookups failing --- core/aimedb.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/aimedb.py b/core/aimedb.py index f8db451..8d2c68e 100644 --- a/core/aimedb.py +++ b/core/aimedb.py @@ -231,7 +231,7 @@ class AimedbServlette(): be fine. """ req = ADBFelicaLookupRequest(data) - ac = await self.data.card.to_access_code(req.idm) + ac = self.data.card.to_access_code(req.idm) self.logger.info( f"idm {req.idm} ipm {req.pmm} -> access_code {ac}" ) @@ -242,7 +242,7 @@ class AimedbServlette(): I've never seen this used. """ req = ADBFelicaLookupRequest(data) - ac = await self.data.card.to_access_code(req.idm) + ac = self.data.card.to_access_code(req.idm) if self.config.server.allow_user_registration: user_id = await self.data.user.create_user() @@ -271,7 +271,7 @@ class AimedbServlette(): async def handle_felica_lookup_ex(self, data: bytes, resp_code: int) -> bytes: req = ADBFelicaLookup2Request(data) - access_code = await self.data.card.to_access_code(req.idm) + access_code = self.data.card.to_access_code(req.idm) user_id = await self.data.card.get_user_id_from_card(access_code=access_code) if user_id is None: