Fix /games page not working

This commit is contained in:
Chris Wilson 2021-09-17 20:35:31 -04:00
parent bd561fd191
commit 678253d037
3 changed files with 3 additions and 3 deletions

View File

@ -90,7 +90,7 @@ def player_settings(game):
# Game Info Pages
@app.route('/games/<string:game>/info/<string:lang>')
def game_page(game, lang):
def game_info(game, lang):
return render_template('gameInfo.html', game=game, lang=lang)

View File

@ -8,7 +8,7 @@
{% block body %}
{% include 'header/grassHeader.html' %}
<div id="game-info" class="markdown" data-game="{{ game }}">
<div id="game-info" class="markdown" data-lang="{{ lang }}" data-game="{{ game }}">
<!-- Populated my JS / MD -->
</div>
{% endblock %}

View File

@ -10,7 +10,7 @@
<div id="games">
<h1>Currently Supported Games</h1>
{% for game, description in worlds.items() %}
<h3><a href="{{ url_for("game_page", game=game) }}/player-settings">{{ game }}</a></h3>
<h3><a href="{{ url_for("player_settings", game=game) }}">{{ game }}</a></h3>
<p>{{ description }}</p>
{% endfor %}
</div>