mantimon-tcg/backend
Cal Corum c6e3695760 Fix card data pipeline: fossil cards and text artifacts
Scraper fixes:
- Detect fossil cards (Helix/Dome Fossil, Old Amber) as Trainer/Item cards
- Add text artifact cleaning for stripped energy icons:
  - 'aEnergy' -> 'an Energy'
  - 'extraEnergy' -> 'extra Energy'
  - 'BenchedPokémon' -> 'Benched Pokémon'
  - And 20+ other common patterns

Converter improvements:
- Add evolution chain validation to detect broken evolves_from references
- Track conversion errors and validation warnings in _index.json
- Return errors from convert_set() for better debugging

Data fixes:
- Fixed 4 fossil cards (now correctly typed as trainer/item)
- Fixed text artifacts in 46 raw card files
- Regenerated all 382 card definitions
- All evolution chains now valid

Added fix_raw_text.py utility script for batch text cleanup.
2026-01-27 14:37:03 -06:00
..
app Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
data Fix card data pipeline: fossil cards and text artifacts 2026-01-27 14:37:03 -06:00
project_plans Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
references Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
scripts Fix card data pipeline: fossil cards and text artifacts 2026-01-27 14:37:03 -06:00
tests Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
.env.example Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
.gitignore Add backend foundation with uv, Black, and pre-commit hooks 2026-01-24 00:12:33 -06:00
.python-version Add backend foundation with uv, Black, and pre-commit hooks 2026-01-24 00:12:33 -06:00
alembic.ini Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
docker-compose.yml Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
PROJECT_PLAN_MASTER.json Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
PROJECT_PLAN.json Complete LOW-001: Verify comprehensive docstring coverage 2026-01-26 14:55:03 -06:00
pyproject.toml Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
uv.lock Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00