mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-29 19:06:24 +02:00
fix: track dedup'd filename in used_paths to prevent collisions
This commit is contained in:
parent
7851db7928
commit
1af5725bd1
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue