TypeError: unsupported operand type(s) for *: 'decimal.Decimal' and 'float' TypeError: unsupported operand type(s) for -: 'float' and 'decimal.Decimal' PostgreSQL NUMERIC/DECIMAL columns return decimal.Decimal objects, not float. These cannot be mixed in arithmetic operations. Fixed 3 locations: - Line 62: float(weight_row['weight']) * 32.5 - Line 153: float(weight_row['weight']) for protein_per_kg - Line 202: float(weight_row['avg_weight']) for adequacy calc 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 | ||