mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-09-21 20:40:47 +02:00

- Include/exclude cards feature complete with 300+ card knowledge base and intelligent fuzzy matching - Enhanced visual validation with warning icons and performance benchmarks (100% pass rate) - Mobile responsive design with bottom-floating controls, two-column layout, and horizontal scroll prevention - Dark theme confirmation modal for fuzzy matches with card preview and alternatives - Dual architecture support for web UI staging system and CLI direct build paths - All M3 checklist items completed: fuzzy match modal, enhanced algorithm, summary panel, mobile responsive, Playwright tests
30 lines
773 B
Python
30 lines
773 B
Python
#!/usr/bin/env python3
|
|
"""Debug the confirmation_needed response structure"""
|
|
|
|
import requests
|
|
import json
|
|
|
|
test_data = {
|
|
"include_cards": "lightn",
|
|
"exclude_cards": "",
|
|
"commander": "",
|
|
"enforcement_mode": "warn",
|
|
"allow_illegal": "false",
|
|
"fuzzy_matching": "true"
|
|
}
|
|
|
|
response = requests.post(
|
|
"http://localhost:8080/build/validate/include_exclude",
|
|
data=test_data,
|
|
timeout=10
|
|
)
|
|
|
|
if response.status_code == 200:
|
|
data = response.json()
|
|
print("Full response:")
|
|
print(json.dumps(data, indent=2))
|
|
print("\nConfirmation needed items:")
|
|
for i, item in enumerate(data.get('confirmation_needed', [])):
|
|
print(f"Item {i}: {json.dumps(item, indent=2)}")
|
|
else:
|
|
print(f"HTTP {response.status_code}: {response.text}")
|