fix: TypeError str/Path в verify_script + заметная кнопка Копировать

1. verify_script получал str вместо Path → TypeError при job_dir / "file"
   Теперь: Path(job_dir) внутри функции
2. Кнопка «Копировать параметры» — inline под таблицей, контрастная (красная рамка)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
anor
2026-03-26 15:46:04 +10:00
co-authored by Claude Opus 4.6
parent 9c0aaffd13
commit 8dcd944a03
2 changed files with 8 additions and 7 deletions
+2 -1
View File
@@ -62,12 +62,13 @@ def verify_script(
script: str,
source_dir: str,
target_file: str,
job_dir: Path,
job_dir: str | Path,
) -> dict:
"""Execute script on 2 sample files to verify correctness.
Returns {"ok": True/False, "processed": int, "errors": [...], "error": str}.
"""
job_dir = Path(job_dir)
# Select 2 sample xlsx files
all_xlsx = sorted(
f for f in Path(source_dir).rglob("*.xlsx")