shinkan-jinkendo/backend/routers
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
..
auth.py fix: auth register - correct column name created_at 2026-04-24 16:07:13 +02:00
catalogs.py feat: Hierarchical Admin UI - Tree View for Catalogs 2026-04-24 07:51:40 +02:00
clubs.py feat: Clubs & Organization Management complete 2026-04-22 16:48:02 +02:00
exercises.py fix: exercises.py - use direct VARCHAR for age_groups (no catalog table in Shinkan) 2026-04-24 15:27:11 +02:00
import_wiki.py fix: correct remaining dict cursor access (row[0] → row['id']) 2026-04-27 08:24:35 +02:00
profiles.py fix: Add /profiles/me endpoint for session persistence 2026-04-22 15:46:40 +02:00
skills.py feat: Skills & Methods catalog complete 2026-04-22 16:50:31 +02:00
training_planning.py feat: Training Planning (core feature) complete 2026-04-22 16:54:34 +02:00