mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
Fix /games page not working
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
@@ -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 %}
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user