This commit is contained in:
Nikolaj
2024-09-09 13:22:11 +02:00
parent e734d55a4d
commit 1526451fd1
3 changed files with 9 additions and 8 deletions

View File

@@ -26,7 +26,8 @@ def main_page():
if game_encoding is None:
game_encoding = "000000"
game_state = decode_state(game_encoding)
return flask.render_template("main_board.html", categories=QUESTIONS["categories"], game_state=game_encoding, draw_cells=game_state)
empty = 36-sum(game_state)
return flask.render_template("main_board.html", categories=QUESTIONS["categories"], game_state=game_encoding, draw_cells=game_state, empty=empty)
@app.route('/question')
def question():