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:
+2
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user