diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-02-22 18:57:24 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-02-22 18:57:24 +0100 |
commit | 495d28fc82db51731768cd61e1d233bb10acbfd6 (patch) | |
tree | dd9a96ed59d21801a1389edd1decd4daad701380 /api | |
parent | de129262cb640d18b85bf83abcdbdf7cf81381d0 (diff) | |
parent | 2c0bb9666c82459bb97a50a0b47aab4cc0dfeb14 (diff) |
Merge branch 'master' of github.com:lonkaars/po-4-op-een-rij
Diffstat (limited to 'api')
-rw-r--r-- | api/status.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/api/status.py b/api/status.py index 6739c9d..6404a7f 100644 --- a/api/status.py +++ b/api/status.py @@ -1,10 +1,14 @@ from flask import Blueprint +from db import cursor status = Blueprint('status', __name__) @status.route('/status') def index(): - return "" + return { + # "users": int, + "games": len(cursor.execute ("select game_id from games where status = \"in_progress\"").fetchall()) + } dynamic_route = ["/", status] |