mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-22 23:31:12 +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
|
if dir_path
|
||||||
else f"{base_name}_{suffix}.md"
|
else f"{base_name}_{suffix}.md"
|
||||||
)
|
)
|
||||||
else:
|
used_paths[file_path] = used_paths.get(file_path, 0) + 1
|
||||||
used_paths[file_path] = 1
|
|
||||||
|
|
||||||
zf.writestr(file_path, markdown)
|
zf.writestr(file_path, markdown)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue