blob: 6404a7f4460acc7b49d4faa2479050dac27f4b3e (
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('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]
|