diff options
author | daanoor <Daan.oor02@gmail.com> | 2021-02-22 14:46:15 +0100 |
---|---|---|
committer | daanoor <Daan.oor02@gmail.com> | 2021-02-22 14:46:15 +0100 |
commit | 29bd2ef0ecf693c36ad4a9d330750b6ad3ecabb5 (patch) | |
tree | 340db02052e05368958a075e5095c75d97d37f59 /api | |
parent | 582d78d60f43846f2beed6a6b9d17c8edf72115c (diff) |
Aantal potjes teogevoegd aan status.py. commentaar bij users = int
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..a1b183a 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] |