feat 订阅支持选择站点范围

This commit is contained in:
jxxghp
2023-07-13 13:00:44 +08:00
parent 670ddaf0a7
commit b58993798d
7 changed files with 97 additions and 12 deletions

View File

@ -2,7 +2,6 @@ from sqlalchemy import Column, Integer, String, Sequence
from sqlalchemy.orm import Session
from app.db.models import Base
from app.schemas import MediaType
class Subscribe(Base):
@ -52,6 +51,8 @@ class Subscribe(Base):
last_update = Column(String)
# 订阅用户
username = Column(String)
# 订阅站点
sites = Column(String)
@staticmethod
def exists(db: Session, tmdbid: int, season: int = None):