From 28f104de9ae9abe4b42abafbf3865ede5687996c Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 11 Apr 2021 17:50:58 +0200 Subject: dprint yapf python formatting --- api/status.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'api/status.py') diff --git a/api/status.py b/api/status.py index 19a01a1..45410a4 100644 --- a/api/status.py +++ b/api/status.py @@ -3,12 +3,18 @@ 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()) - } + return { + # "users": int, + "games": + len( + cursor.execute( + "select game_id from games where status = \"in_progress\"" + ).fetchall() + ) + } -dynamic_route = ["/", status] +dynamic_route = ["/", status] -- cgit v1.2.3