1.4.1: records with a step „summe“ no longer end the table (zeilen-fehlen) #7

Merged
oliver.maklott merged 1 commit from fix-summary-label-step-ids into main 2026-11-04 15:40:35 +01:00

Students were blocked in daten-holen / „als-arbeitsmappe“ with zeilen-fehlen although their workbook matched the CSV.

Cause: not the multiline code (the CSV reader handles it, 409 of 409 records in the real export). The Excel bridge (befund.js, rowKind) took any text cell that starts with a summary word as a summary label. In the real workbook, F298 (column Schritt) holds the step ID summe, so the table ended at row 297: 296 of 409 rows.

Fix

  • A label makes a summary row only when it is the row's only text (records have several: Datensatz, Challenge, Stufe, Schritt …).
  • The word must stand alone or be followed by a space, : or (, so summe-berechnen or max_wert are no labels.
  • New fixture f0-raw-summe (step summe/max, answer Summe, challenge anzahl-zaehlen, multiline code): 211 = 211 rows. The old code gives 0 rows on it.
  • All 53 earlier findings regenerate byte-identical.
  • New test for the CSV reader (multiline, "", leading ').
  • Version 1.4.1.

Checked: aivopod pack test 173/173, aivopod pack build ok, the real export + workbook now give 409 = 409.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUe4enbbFa5wN79YqkT9k

Students were blocked in `daten-holen` / „als-arbeitsmappe“ with `zeilen-fehlen` although their workbook matched the CSV. **Cause:** not the multiline code (the CSV reader handles it, 409 of 409 records in the real export). The Excel bridge (`befund.js`, `rowKind`) took **any** text cell that starts with a summary word as a summary label. In the real workbook, `F298` (column `Schritt`) holds the step ID `summe`, so the table ended at row 297: 296 of 409 rows. **Fix** - A label makes a summary row only when it is the row's only text (records have several: Datensatz, Challenge, Stufe, Schritt …). - The word must stand alone or be followed by a space, `:` or `(`, so `summe-berechnen` or `max_wert` are no labels. - New fixture `f0-raw-summe` (step `summe`/`max`, answer `Summe`, challenge `anzahl-zaehlen`, multiline code): 211 = 211 rows. The old code gives 0 rows on it. - All 53 earlier findings regenerate byte-identical. - New test for the CSV reader (multiline, `""`, leading `'`). - Version 1.4.1. **Checked:** `aivopod pack test` 173/173, `aivopod pack build` ok, the real export + workbook now give 409 = 409. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PVUe4enbbFa5wN79YqkT9k
1.4.1: a record whose step, answer or challenge starts with a summary word stays a data row
All checks were successful
pack / pack (pull_request) Successful in 10s
pack / pack (push) Successful in 9s
e992c22487
The Excel bridge took any text cell starting with "Summe", "Anzahl", "max" … as the label of a
summary row and ended the table there. A real export with the step ID "summe" (column Schritt)
lost every record below it, so "als-arbeitsmappe" said the workbook had fewer rows than the CSV.
A label now makes a summary row only when it is the row's only text, and the word must stand
alone or be followed by a space, colon or bracket ("summe-berechnen" is no label). The CSV
reader was correct (multiline code included); a test now keeps it that way. New fixture
f0-raw-summe; all other findings are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4enbbFa5wN79YqkT9k
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aivopod-challenges/Meine-Lerndaten!7
No description provided.