shinkan-jinkendo/backend
Lars 1a0708f152
Some checks failed
Deploy Development / deploy (push) Successful in 35s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Failing after 1m57s
fix: correct remaining dict cursor access (row[0] → row['id'])
Error: 100 exercises failed with error '0' (TypeError suppressed)
Root cause: More row[0] dict access in catalog assignment functions

Previous fix only covered fetchone()[0] in RETURNING clauses.
Missed 6 more locations in SELECT queries where row is dict-like.

Fixed locations:
- Line 511: focus_area_id in exercise_focus_areas INSERT
- Line 524: style_direction_id in exercise_training_styles INSERT
- Line 535: target_group_id in exercise_target_groups INSERT
- Line 546: skill_id in exercise_skills INSERT
- Line 568: skill_id in exercise_skills INSERT (with levels)
- Line 589: category_id assignment in _upsert_skill

All changed from row[0] to row['id'] for RealDictCursor compatibility.

This should fix the remaining 100 import failures.
2026-04-27 08:24:35 +02:00
..
migrations fix: make exercise goal and execution optional (at least one required) 2026-04-24 20:42:21 +02:00
routers fix: correct remaining dict cursor access (row[0] → row['id']) 2026-04-27 08:24:35 +02:00
auth.py fix: Remove Mitai-specific columns from session query 2026-04-22 06:56:57 +02:00
db_init.py feat: Initial Shinkan setup 2026-04-21 14:26:12 +02:00
db.py feat: Initial Shinkan setup 2026-04-21 14:26:12 +02:00
Dockerfile feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD 2026-04-21 14:36:52 +02:00
main.py feat: Add MediaWiki import functionality with tracking and mapping 2026-04-24 14:41:52 +02:00
models.py fix: Add ProfileCreate and ProfileUpdate models 2026-04-21 16:05:42 +02:00
requirements.txt feat: Initial Shinkan setup 2026-04-21 14:26:12 +02:00
run_migrations.py feat: Add automatic migrations system 2026-04-21 14:49:28 +02:00
smw_client.py feat: add recursive subcategory search for MediaWiki import 2026-04-24 17:53:11 +02:00
smw_mapper.py feat: Add MediaWiki import functionality with tracking and mapping 2026-04-24 14:41:52 +02:00
version.py feat: Exercises v2.0 + Migrations 014/016/017 (Clean-Room Rebuild) 2026-04-24 15:04:27 +02:00