From 56b56e4e857d15248c41734c30bd6412b62764f2 Mon Sep 17 00:00:00 2001 From: "Mr.Xia" <1424473282@qq.com> Date: Sat, 2 May 2026 16:07:16 +0800 Subject: [PATCH] fix: room_store __db name mangling + add singleton --- danding_bot/plugins/group_horse_racing/room_store.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/danding_bot/plugins/group_horse_racing/room_store.py b/danding_bot/plugins/group_horse_racing/room_store.py index 906b19b..3c014d1 100644 --- a/danding_bot/plugins/group_horse_racing/room_store.py +++ b/danding_bot/plugins/group_horse_racing/room_store.py @@ -102,7 +102,7 @@ class RoomStore: async def load_rooms(self): """Restore active rooms from DB snapshots on startup.""" await self.ensure_initialized() - db = await self.__db if self._db else await self._get_db() + db = await self._get_db() cursor = await db.execute( "SELECT scope, state, created_at, horses, bets, champion_name, tick_count FROM room_snapshots" )