fix rss api

This commit is contained in:
jxxghp
2023-08-10 16:50:02 +08:00
parent eb9ec11153
commit 5deec011f8
4 changed files with 63 additions and 3 deletions

View File

@ -26,10 +26,12 @@ class RssOper(DbOper):
"""
return Rss.get_by_tmdbid(self._db, tmdbid, season)
def list(self) -> List[Rss]:
def list(self, rssid: int = None) -> List[Rss]:
"""
查询所有RSS订阅
"""
if rssid:
return [Rss.get(self._db, rssid)]
return Rss.list(self._db)
def delete(self, rssid: int) -> bool: