Issue 1: Automatic training type mapping didn't work - Root cause: Only English workout names were mapped - Solution: Added 20+ German workout type mappings: - "Traditionelles Krafttraining" → hypertrophy - "Outdoor Spaziergang" → walk - "Innenräume Spaziergang" → walk - "Matrial Arts" → technique (handles typo) - "Cardio Dance" → dance - "Geist & Körper" → yoga - Plus: Laufen, Gehen, Radfahren, Schwimmen, etc. Issue 2: Reimporting CSV created duplicates without training types - Root cause: Import always did INSERT with new UUID, no duplicate check - Solution: Check if entry exists (profile_id + date + start_time) - If exists: UPDATE with new data + training type mapping - If new: INSERT as before - Handles multiple workouts per day (different start times) - "Skipped" count now includes updated entries Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| migrations | ||
| routers | ||
| apply_v9c_migration.py | ||
| auth.py | ||
| check_features.py | ||
| db_init.py | ||
| db.py | ||
| Dockerfile | ||
| feature_logger.py | ||
| main_old.py | ||
| main.py | ||
| migrate_to_postgres.py | ||
| models.py | ||
| requirements.txt | ||
| schema.sql | ||
| startup.sh | ||