mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-07 23:01:06 +02:00
The filament_used_grams field already contains the total filament for the entire print job (all items combined). The code was incorrectly multiplying this value by quantity, causing inflated filament totals. Example: A print with 26 objects using 126g total was being calculated as 126g * 26 = 3,276g instead of the correct 126g. Fixes: - backend/app/api/routes/archives.py: Archive stats endpoint - backend/app/api/routes/metrics.py: Prometheus metrics endpoint - frontend/src/components/FilamentTrends.tsx: Trends chart calculations Closes #229