Skip to content

Commit

Permalink
Files: Fix zip download filename
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Dec 23, 2020
1 parent 083b0fd commit 060e4a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions weblate/trans/views/files.py
Expand Up @@ -54,13 +54,13 @@ def download_multi(translations, fmt=None, name="translations"):
if translation.component_id in components:
continue
components.add(translation.component_id)
for name in (
for filename in (
translation.component.template,
translation.component.new_base,
translation.component.intermediate,
):
if name:
fullname = os.path.join(translation.component.full_path, name)
if filename:
fullname = os.path.join(translation.component.full_path, filename)
if os.path.exists(fullname):
filenames.add(fullname)

Expand Down

0 comments on commit 060e4a8

Please sign in to comment.