fix: track dedup'd filename in used_paths to prevent collisions

This commit is contained in:
CREDO23 2026-04-09 13:51:32 +02:00
parent 7851db7928
commit 1af5725bd1

View file

@ -147,8 +147,7 @@ async def build_export_zip(
if dir_path
else f"{base_name}_{suffix}.md"
)
else:
used_paths[file_path] = 1
used_paths[file_path] = used_paths.get(file_path, 0) + 1
zf.writestr(file_path, markdown)