diff --git a/modules/room_util.py b/modules/room_util.py index 071ea4280ee609624e2768f567ea8be7a5a900cd..87adbef8c3777fce8f09d559f02d26f1a2e675e4 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)