feat:订阅历史以及API

This commit is contained in:
jxxghp
2024-04-18 21:00:57 +08:00
parent 3a18267ec0
commit f6222122c0
2 changed files with 7 additions and 1 deletions

View File

@ -314,7 +314,11 @@ def read_subscribe(
"""
查询电影/电视剧订阅历史
"""
return SubscribeHistory.list_by_type(db, mtype=mtype, page=page, count=count)
historys = SubscribeHistory.list_by_type(db, mtype=mtype, page=page, count=count)
for history in historys:
if history and history.sites:
history.sites = json.loads(history.sites)
return historys
@router.delete("/history/{history_id}", summary="删除订阅历史", response_model=schemas.Response)