copilot test

This commit is contained in:
Martin Sukany
2025-11-13 11:37:28 +01:00
parent 7ef8e20564
commit 9a7ffdeb2c
12 changed files with 356 additions and 2 deletions

View File

@@ -92,6 +92,11 @@ def read_excel(file_content):
error_rows.append({"index": index, "row": row, "error": str(e)})
valid_data = pd.DataFrame(valid_data)
# Pokud nejsou žádné validní řádky, vrať prázdný DataFrame a chyby.
if valid_data.empty:
if show_debug:
print("<pre>No valid rows after parsing</pre>")
return valid_data.drop(columns='index', errors='ignore'), error_rows
if show_debug:
print("<pre>Cleaned data:\n")