From 17e4ee48ae4a5679f12616b63c2197ccedfaaa45 Mon Sep 17 00:00:00 2001 From: Nils G <nils.gondermann@ruhr-uni-bochum.de> Date: Thu, 23 Apr 2020 13:47:34 +0200 Subject: [PATCH] Added submits to player status --- modules/room_util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/room_util.py b/modules/room_util.py index 071ea42..87adbef 100644 --- a/modules/room_util.py +++ b/modules/room_util.py @@ -1,4 +1,5 @@ from gluon import * +from parameter_util import B64_TO_JSON def ROOM_GET(_id, _password): room_record = current.db(current.db.Room.id == _id).select().first() @@ -24,7 +25,7 @@ def PLAYERS_GET(_room, _uid=False): players = [] player_id = 0 for row in rows: - obj = {"id": player_id, "name": row.name, "role": row.role} + obj = {"id": player_id, "name": row.name, "role": row.role, "submits": B64_TO_JSON(row.inputs)} if _uid: obj["uid"] = row.id players.append(obj) -- GitLab