Skip to content

Commit 81bde10

Browse files
Fix: Always load full file for import, not just preview cache
Co-authored-by: tmaier-kettering <109093855+tmaier-kettering@users.noreply.github.com>
1 parent 8eaf2cb commit 81bde10

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

file_handling/data_import.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -467,14 +467,13 @@ def _do_import():
467467
if not path:
468468
messagebox.showerror("Error", "No file selected.", parent=dlg)
469469
return
470-
if not _loaded_rows:
471-
try:
472-
rows = _load_tabular(path)
473-
except Exception as e:
474-
messagebox.showerror("Load error", str(e), parent=dlg)
475-
return
476-
else:
477-
rows = _loaded_rows
470+
# Always load the full file without row limit for import
471+
# (preview may have loaded only 200 rows)
472+
try:
473+
rows = _load_tabular(path)
474+
except Exception as e:
475+
messagebox.showerror("Load error", str(e), parent=dlg)
476+
return
478477

479478
body = rows[1:] if (has_headers.get() and rows) else rows
480479
if not body:

0 commit comments

Comments
 (0)