TypeError: unsupported operand type(s) for -: 'decimal.Decimal' and 'float' PostgreSQL NUMERIC columns return Decimal objects. Must convert current_value, target_value, start_value to float before passing to calculate_goal_progress_pct(). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| activity_metrics.py | ||
| body_metrics.py | ||
| correlation_metrics.py | ||
| nutrition_metrics.py | ||
| recovery_metrics.py | ||
| scores.py | ||