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. |
||
|---|---|---|
| .. | ||
| auth.py | ||
| catalogs.py | ||
| clubs.py | ||
| exercises.py | ||
| import_wiki.py | ||
| profiles.py | ||
| skills.py | ||
| training_planning.py | ||