Skip to content

fix(app): CSV uploads work in every tab; header shows the real version - #11

Merged
Hj1308 merged 1 commit into
mainfrom
claude/nifty-dirac-57byzj
Oct 1, 2026
Merged

Hj1308 merged 1 commit into
mainfrom
claude/nifty-dirac-57byzj

Conversation

@Hj1308

@Hj1308 Hj1308 commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • CSV uploads broke tabs 2–9. Every tab calls _load_kinetic_data on the same UploadedFile; read_csv left the cursor at the end, so every tab after the first showed "Cannot read file: Could not determine delimiter". Excel was unaffected (openpyxl seeks itself). The loader now calls uploaded.seek(0) first.
  • The page title and header said v3.5.3; both now read catlab.__version__.

Tests

Three new tests in tests/test_app_ods.py::TestRepeatedUploadReads — nine consecutive CSV reads, an AppTest CSV upload with no "Cannot read file" error in any tab, and the header version. All three fail on main and pass with this change. Full suite: 155 passed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GN1ANT89MKDjHRXcnjgSjo


Generated by Claude Code

…e real version

Every tab calls _load_kinetic_data on the same UploadedFile. read_csv
left the cursor at the end, so on a CSV upload every tab after the first
failed with "Cannot read file: Could not determine delimiter" (Excel was
unaffected because openpyxl seeks itself). The loader now calls
uploaded.seek(0) first.

The page title and header said v3.5.3; both now use catlab.__version__.

Tests: repeated CSV reads, an AppTest CSV upload with no "Cannot read
file" error in any tab, and the header version. All three fail without
the fix.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GN1ANT89MKDjHRXcnjgSjo
@Hj1308
Hj1308 merged commit 8249366 into main Oct 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants