MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / get_conversation_by_id

Method get_conversation_by_id

astrbot/core/db/sqlite.py:261–266  ·  view source on GitHub ↗
(self, cid)

Source from the content-addressed store, hash-verified

259 return result.scalars().all()
260
261 async def get_conversation_by_id(self, cid):
262 async with self.get_db() as session:
263 session: AsyncSession
264 query = select(ConversationV2).where(ConversationV2.conversation_id == cid)
265 result = await session.execute(query)
266 return result.scalar_one_or_none()
267
268 async def get_all_conversations(self, page=1, page_size=20):
269 async with self.get_db() as session:

Callers 1

update_conversationMethod · 0.95

Calls 2

get_dbMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected