This commit is contained in:
jxxghp
2023-08-19 08:35:32 +08:00
parent b68515e427
commit 84c21d65c7
2 changed files with 7 additions and 3 deletions

View File

@ -36,7 +36,10 @@ class SubscribeOper(DbOper):
"""
判断是否存在
"""
return True if Subscribe.exists(self._db, tmdbid=tmdbid, season=season) else False
if season:
return True if Subscribe.exists(self._db, tmdbid=tmdbid, season=season) else False
else:
return True if Subscribe.exists(self._db, tmdbid=tmdbid) else False
def get(self, sid: int) -> Subscribe:
"""