Skip to content

fix: resolve NameError for undefined card_number variable#1

Closed
Washio20 wants to merge 1 commit intomainfrom
fix/bug-14
Closed

fix: resolve NameError for undefined card_number variable#1
Washio20 wants to merge 1 commit intomainfrom
fix/bug-14

Conversation

@Washio20
Copy link
Owner

Summary

  • Fixes NameError: name 'card_number' is not defined in router/identify.py:64
  • The identify_json function receives a CardQuery object named card, but line 64 incorrectly referenced card_number (an undefined variable) instead of card.number
  • This was likely a rename regression where the parameter was renamed but this reference was missed

Closes stayforge/Stayforge_Networks_Access#14

Test plan

  • Verify that POST /identify/json no longer raises NameError
  • Verify that card identification works correctly with valid card numbers

🤖 Generated with Claude Code

…yforge/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 <noreply@anthropic.com>
@Washio20 Washio20 closed this Feb 27, 2026
@Washio20 Washio20 deleted the fix/bug-14 branch February 27, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant