From a476ebffd92ebb3f87f725aad14dd691a57c4dbe Mon Sep 17 00:00:00 2001 From: pipeline-agent Date: Sun, 30 Aug 2026 14:20:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20game=5Flist=5Fgames=E8=AF=AD=E6=B3=95?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scense_game/core.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scense_game/core.py b/scense_game/core.py index bea1640..ce38c27 100644 --- a/scense_game/core.py +++ b/scense_game/core.py @@ -67,12 +67,16 @@ async def game_list_games(user_id): try: dbname = _get_dbname() async with DBPools().sqlorContext(dbname) as sor: - rows = await sor.R(game, {}) + rows = await sor.R('game', {}) if rows: - return [{game_id: r.id, game_name: r.name, desc: r.description or , - icon: r.icon or fa-gamepad, world_id: , status: r.status} for r in rows] + out = [] + for r in rows: + out.append({'game_id': r.id, 'game_name': r.name, + 'desc': r.description or '', 'icon': r.icon or 'fa-gamepad', + 'world_id': '', 'status': r.status}) + return out except Exception as e: - error(game_list_games: %s % e) + error('game_list_games: %s' % e) return list(_GAME_CATALOG)