diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-04-11 17:50:58 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-04-11 17:50:58 +0200 |
commit | 28f104de9ae9abe4b42abafbf3865ede5687996c (patch) | |
tree | 65e651f09d8fbf81380384692e45803cb4f9d61c /api/status.py | |
parent | 7b4859059b3bbabf4139ccdf3270a82c094f5d8e (diff) |
dprint yapf python formatting
Diffstat (limited to 'api/status.py')
-rw-r--r-- | api/status.py | 16 |
1 files changed, 11 insertions, 5 deletions
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] |