Skip to content

Commit

Permalink
Put Windows embeddable packages at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Sep 17, 2023
1 parent 0403ca1 commit 6509e25
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion downloads/templatetags/download_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,14 @@ def prioritise_64bit_over_32bit(files):
new.append(current)
previous = current

return new
# Put embeddable packages at the end
embeddable_packages = []
others = []

for file in new:
if file.name.startswith('Windows embeddable package'):
embeddable_packages.append(file)
else:
others.append(file)

return others + embeddable_packages

0 comments on commit 6509e25

Please sign in to comment.