blob: 19a01a10ae2d24e90624139fd2b6e87dcd3b10ce (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
 | from flask import Blueprint
from db import cursor
status = Blueprint('server_status', __name__)
@status.route('/status')
def index():
    return {
            # "users": int,
            "games": len(cursor.execute ("select game_id from games where status = \"in_progress\"").fetchall())
            }
dynamic_route = ["/", status]
 |