mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 03:57:30 +08:00
feat: add UpdateSiteCookieTool and enhance site operations
- Introduced UpdateSiteCookieTool to the toolset for managing site cookies. - Updated __all__ exports in init.py and factory.py to include UpdateSiteCookieTool. - Added async_get method in SiteOper for asynchronous retrieval of individual site records, improving database interaction.
This commit is contained in:
@@ -29,6 +29,12 @@ class SiteOper(DbOper):
|
||||
"""
|
||||
return Site.get(self._db, sid)
|
||||
|
||||
async def async_get(self, sid: int) -> Site:
|
||||
"""
|
||||
异步查询单个站点
|
||||
"""
|
||||
return await Site.async_get(self._db, sid)
|
||||
|
||||
def list(self) -> List[Site]:
|
||||
"""
|
||||
获取站点列表
|
||||
|
||||
Reference in New Issue
Block a user