mirror of
https://gitea.baerentsen.space/FrederikBaerentsen/BrickTracker.git
synced 2026-05-03 05:31:15 -05:00
Fixed total minifigures for consolidated sets
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user