Fixed total minifigures for consolidated sets

This commit is contained in:
Frederik Baerentsen
2025-09-28 08:59:10 +02:00
parent 3f6af51a43
commit c1089c349f
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -41,6 +41,10 @@
- Improved theme filtering: handles duplicate theme names correctly
- Fixed set number sorting: proper numeric sorting in both ascending and descending order
- Mixed status indicators for consolidated sets: three-state checkboxes (unchecked/partial/checked) with count badges
- Enhanced SQL aggregation with `IFNULL(SUM())` for accurate count statistics
- Template logic handles three states: none (0/2), all (2/2), partial (1/2) with visual indicators
- Purple overlay styling for partial states, disabled checkboxes for read-only consolidated status display
- Individual sets maintain full interactive checkbox functionality
### 1.2.4
+1 -1
View File
@@ -12,7 +12,7 @@ SELECT
COUNT("bricktracker_sets"."id") AS "instance_count",
IFNULL(SUM("problem_join"."total_missing"), 0) AS "total_missing",
IFNULL(SUM("problem_join"."total_damaged"), 0) AS "total_damaged",
IFNULL(SUM("minifigures_join"."total"), 0) AS "total_minifigures",
IFNULL(MAX("minifigures_join"."total"), 0) AS "total_minifigures",
-- Keep one representative instance for display purposes
GROUP_CONCAT("bricktracker_sets"."id", '|') AS "instance_ids",
REPLACE(GROUP_CONCAT(DISTINCT "bricktracker_sets"."storage"), ',', '|') AS "storage",