Skip to content

Commit

Permalink
Update integreat_cms/cms/utils/file_utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Nerlich <PeterNerlich@users.noreply.github.com>
  • Loading branch information
charludo and PeterNerlich authored Jan 20, 2025
1 parent 20bd98f commit 623e835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integreat_cms/cms/utils/file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def extract_zip_archive(
invalid_files = [
file_path
for file_path in extracted_files
if not file_path.endswith(("/", *tuple(allowed_file_extensions)))
if not file_path.endswith(("/", *allowed_file_extensions))
]
# Remove all invalid files from extracted files
extracted_files = list(set(extracted_files) - set(invalid_files))
Expand Down

0 comments on commit 623e835

Please sign in to comment.