KoalaTrapLord
6c03e56794
fix( #116 ): dual card_records fallback JOIN, card_type/card_category fields, simulator land detection
...
- deck_service._compute_deck_analysis: add LEFT JOIN card_records with COALESCE on all fields
- deck_service: add _classify_card_category() with oracle-text keyword matching
- deckbuilder.GET /api/decks/{id}/cards: add card_records fallback JOIN + COALESCE, emit card_type/card_category per card
- deepseek._fetch_deck_card_data: add card_records fallback JOIN so lands get correct type_line before enrich_card()
Closes #116
2026-03-27 04:10:17 -04:00
Claude and Claude Opus 4.6
978fb12969
fix: early return in _load_deck_cards_by_name when deck not found in DB
...
Fixes UnboundLocalError crash when deck_row is None by returning an
empty list instead of falling through to a query with an unbound deck_id.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-22 07:25:39 +00:00
KoalaTrapLord
06f007e605
fix: invert guard in _load_deck_cards_by_name — was if not deck_row (crash on None[0])
...
The guard condition was inverted: `if not deck_row:` entered the query
block when no deck was found, causing `deck_row[0]` to crash with
'NoneType' object is not subscriptable. Flipped to `if deck_row:`
so the query runs only when the deck exists.
2026-03-21 15:11:08 -04:00
KoalaTrapLord
d86109c5c0
Fix duplicate WHERE clause in _load_deck_cards_by_name SQL query
2026-03-19 17:54:34 -04:00
KoalaTrapLord
d9dd098ca3
fix: add power, toughness, keywords to _load_deck_cards_by_name SQL query
2026-03-19 17:43:57 -04:00
KoalaTrapLord
83a8f288b7
Fix scrambled deck_service.py: close SQL query in _load_deck_cards_by_name, remove orphaned lines
2026-03-19 06:24:13 +00:00
KoalaTrapLord
b0d0b75dbb
refactor: add _build_dck_lines() and _write_dck_file() to services/deck_service.py
2026-03-19 01:06:29 -04:00
Claude and Claude Opus 4.6
6298f83abd
fix: correct indentation errors in services/*.py
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-18 04:22:17 +00:00
KoalaTrapLord
c7309d1ace
Phase 2b: Extract deck service to services/deck_service.py ( #11 )
2026-03-17 05:05:52 -04:00