Skip to content

Commit 082df85

Browse files
committed
update filename for markdown gzip file
1 parent 1ab9888 commit 082df85

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

synapseclient/models/wiki.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import gzip
44
import os
55
import shutil
6-
import uuid
76
from dataclasses import dataclass, field
87
from typing import Any, Dict, List, Optional, Union
98

@@ -472,7 +471,7 @@ def _to_gzip_file(
472471

473472
else:
474473
# If it's a plain text, write it to a gzipped file and save it in the synapse cache
475-
file_path = os.path.join(cache_dir, f"wiki_markdown_{uuid.uuid4()}.md.gz")
474+
file_path = os.path.join(cache_dir, f"wiki_markdown_{self.id}.md.gz")
476475
with gzip.open(file_path, "wt", encoding="utf-8") as f_out:
477476
f_out.write(wiki_content)
478477

0 commit comments

Comments
 (0)