blob: 32f96ee3da3d300cce98f6ce9b1833cd65845a5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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]
|