mirror of
https://codeberg.org/catask-org/catask.git
synced 2025-04-19 21:33:41 -05:00
fix name overlap
This commit is contained in:
parent
264f5025a1
commit
afc89777fb
1 changed files with 6 additions and 6 deletions
12
functions.py
12
functions.py
|
@ -720,15 +720,15 @@ def createExport() -> dict:
|
||||||
emojis_dir = Path('static/emojis')
|
emojis_dir = Path('static/emojis')
|
||||||
|
|
||||||
if favicon_dir.exists():
|
if favicon_dir.exists():
|
||||||
for root, _, files in os.walk(favicon_dir):
|
for root, unused, files in os.walk(favicon_dir):
|
||||||
for file in files:
|
for file_ in files:
|
||||||
file_path = Path(root) / file
|
file_path = Path(root) / file_
|
||||||
export_zip.write(file_path, arcname=file_path.relative_to(favicon_dir.parent.parent))
|
export_zip.write(file_path, arcname=file_path.relative_to(favicon_dir.parent.parent))
|
||||||
|
|
||||||
if emojis_dir.exists():
|
if emojis_dir.exists():
|
||||||
for root, _, files in os.walk(emojis_dir):
|
for root, unused, files in os.walk(emojis_dir):
|
||||||
for file in files:
|
for file_ in files:
|
||||||
file_path = Path(root) / file
|
file_path = Path(root) / file_
|
||||||
export_zip.write(file_path, arcname=file_path.relative_to(emojis_dir.parent))
|
export_zip.write(file_path, arcname=file_path.relative_to(emojis_dir.parent))
|
||||||
|
|
||||||
# Record export metadata
|
# Record export metadata
|
||||||
|
|
Loading…
Add table
Reference in a new issue