diff --git a/functions.py b/functions.py index 6cce774..f598afa 100644 --- a/functions.py +++ b/functions.py @@ -720,15 +720,15 @@ def createExport() -> dict: emojis_dir = Path('static/emojis') if favicon_dir.exists(): - for root, _, files in os.walk(favicon_dir): - for file in files: - file_path = Path(root) / file + for root, unused, files in os.walk(favicon_dir): + for file_ in files: + file_path = Path(root) / file_ export_zip.write(file_path, arcname=file_path.relative_to(favicon_dir.parent.parent)) if emojis_dir.exists(): - for root, _, files in os.walk(emojis_dir): - for file in files: - file_path = Path(root) / file + for root, unused, files in os.walk(emojis_dir): + for file_ in files: + file_path = Path(root) / file_ export_zip.write(file_path, arcname=file_path.relative_to(emojis_dir.parent)) # Record export metadata