Skip to content

Commit 6509e25

Browse files
committed
Put Windows embeddable packages at the end
1 parent 0403ca1 commit 6509e25

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

downloads/templatetags/download_tags.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,14 @@ def prioritise_64bit_over_32bit(files):
3131
new.append(current)
3232
previous = current
3333

34-
return new
34+
# Put embeddable packages at the end
35+
embeddable_packages = []
36+
others = []
37+
38+
for file in new:
39+
if file.name.startswith('Windows embeddable package'):
40+
embeddable_packages.append(file)
41+
else:
42+
others.append(file)
43+
44+
return others + embeddable_packages

0 commit comments

Comments
 (0)