From 054653a262522f878a9a32166dc19ea36ffeef23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=BE=E7=94=B0=E7=B4=94=E5=B9=B3?= Date: Sat, 28 Feb 2026 01:01:49 +0900 Subject: [PATCH] fix: resolve NameError for undefined 'card_number' in identify_json endpoint (Closes stayforge/Stayforge_Networks_Access#14) The identify_json function parameter is 'card' (a CardQuery object), but line 64 referenced the undefined variable 'card_number'. Changed to 'card.number' to correctly access the number field from the CardQuery model. 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 )