add experimental live game support

This commit is contained in:
2020-12-22 11:52:40 +01:00
parent ce798467ea
commit e9920ac0e9
6 changed files with 136 additions and 5 deletions

View File

@@ -52,6 +52,14 @@ def singleRound():
return flask.render_template("single_round.html", r=r)
@app.route("/livegames")
def liveGames():
'''Display info about a single round itdentified by it's timestamp'''
db = DatabaseConnection(app.config["DB_PATH"])
rounds = db.getLiveGames()
return flask.render_template("livegames.html", liveGameRounds=rounds, noRounds=not bool(rounds))
@app.route("/maps")
def maps():
'''Show an overview of maps'''