From 16926b03a7cd7f51038576894283d5d4a0beeaba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=BE=E7=94=B0=E7=B4=94=E5=B9=B3?= Date: Mon, 23 Feb 2026 17:04:53 +0900 Subject: [PATCH] fix: resolve NameError for undefined card_number variable (Closes stayforge/Stayforge_Networks_Access#14) The identify_json function referenced `card_number` which was undefined. The correct reference is `card.number` since `card` is the CardQuery parameter. Co-Authored-By: Claude Opus 4.6 --- router/identify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/identify.py b/router/identify.py index 34910af..232150a 100644 --- a/router/identify.py +++ b/router/identify.py @@ -61,7 +61,7 @@ async def identify_json( try: card = verify_card( device_sn=device_sn, - card_number=card_number, + card_number=card.number, environment=x_environment, client_id=None )