Skip to content

Commit cda54e0

Browse files
authored
WebHost: Fix world sorting in /tutorial/ (#5785)
1 parent 0554bf4 commit cda54e0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

WebHostLib/misc.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,13 @@ def tutorial_landing():
128128
"authors": tutorial.authors,
129129
"language": tutorial.language
130130
}
131-
tutorials = {world_name: tutorials for world_name, tutorials in title_sorted(
132-
tutorials.items(), key=lambda element: "\x00" if element[0] == "Archipelago" else worlds[element[0]].game)}
131+
132+
worlds = dict(
133+
title_sorted(
134+
worlds.items(), key=lambda element: "\x00" if element[0] == "Archipelago" else worlds[element[0]].game
135+
)
136+
)
137+
133138
return render_template("tutorialLanding.html", worlds=worlds, tutorials=tutorials)
134139

135140

0 commit comments

Comments
 (0)