chore(shopping): stale Kommentar in clearCheckedItems entfernt
All checks were successful
Build & Publish Docker Image / build-and-push (push) Successful in 2m13s

Der alte Satz beschrieb die ersetzte SQL-EXISTS-Variante; der neue
erklaert den aktuellen JS-basierten Family-Lookup.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-22 17:11:02 +02:00
parent c177c1dc5f
commit b556eb39b3

View File

@@ -181,10 +181,8 @@ export function toggleCheck(
export function clearCheckedItems(db: Database.Database): void { export function clearCheckedItems(db: Database.Database): void {
const tx = db.transaction(() => { const tx = db.transaction(() => {
// Alle aggregierten Zeilen mit checked-Status holen, pro recipe_id gruppieren
// und Rezepte finden, deren Zeilen ALLE abgehakt sind.
// Rohe (name, unit)-Zeilen holen, checked-Status per Family-Key-Lookup // Rohe (name, unit)-Zeilen holen, checked-Status per Family-Key-Lookup
// in JS entscheiden (SQL-CASE-Duplikation vermeiden). // in JS entscheiden. Rezepte mit ALLEN Zeilen abgehakt werden raus.
const allRowsRaw = db const allRowsRaw = db
.prepare( .prepare(
`SELECT `SELECT