MCPcopy Create free account
hub / github.com/NanmiCoder/MediaCrawler / content_is_exist

Method content_is_exist

store/xhs/_store_impl.py:177–180  ·  view source on GitHub ↗
(self, session: AsyncSession, note_id: str)

Source from the content-addressed store, hash-verified

175 await session.execute(stmt)
176
177 async def content_is_exist(self, session: AsyncSession, note_id: str) -> bool:
178 stmt = select(XhsNote).where(XhsNote.note_id == note_id)
179 result = await session.execute(stmt)
180 return result.first() is not None
181
182 async def store_comment(self, comment_item: Dict):
183 if not comment_item:

Callers 1

store_contentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected