WebHost: Fixed game order by title in Site Map (#1349)

This commit is contained in:
Jarno 2023-01-02 19:24:08 +01:00 committed by GitHub
parent dae1a3e0f9
commit 9c3c69702a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -69,10 +69,6 @@ def tutorial(game, file, lang):
@app.route('/tutorial/')
def tutorial_landing():
worlds = {}
for game, world in AutoWorldRegister.world_types.items():
if not world.hidden:
worlds[game] = world
return render_template("tutorialLanding.html")

View File

@ -31,14 +31,14 @@
<h2>Game Info Pages</h2>
<ul>
{% for game in games %}
{% for game in games | title_sorted %}
<li><a href="{{ url_for('game_info', game=game, lang='en') }}">{{ game }}</a></li>
{% endfor %}
</ul>
<h2>Game Settings Pages</h2>
<ul>
{% for game in games %}
{% for game in games | title_sorted %}
<li><a href="{{ url_for('player_settings', game=game) }}">{{ game }}</a></li>
{% endfor %}
</ul>