fix 获取指定用户的订阅列表

This commit is contained in:
thsrite
2024-04-22 15:56:50 +08:00
parent e430a3e88b
commit e519fc484b
2 changed files with 25 additions and 0 deletions

View File

@ -95,6 +95,12 @@ class SubscribeOper(DbOper):
"""
return Subscribe.get_by_tmdbid(self._db, tmdbid=tmdbid, season=season)
def list_by_username(self, username: str, state: str = None, mtype: str = None) -> List[Subscribe]:
"""
获取指定用户的订阅
"""
return Subscribe.list_by_username(self._db, username=username, state=state, mtype=mtype)
def list_by_type(self, mtype: str, days: int = 7) -> Subscribe:
"""
获取指定类型的订阅