mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 15:06:19 -05:00
Removing unused function.
This commit is contained in:
parent
678c17e8b9
commit
aed6b5e73d
1 changed files with 0 additions and 10 deletions
|
|
@ -147,16 +147,6 @@ def search_videos(
|
|||
return results, total
|
||||
|
||||
|
||||
@run_after(save_channels_config)
|
||||
def tag_video(video_id: int, tag_name: str) -> Dict:
|
||||
"""Tag a video"""
|
||||
with get_db_session(commit=True):
|
||||
video = Video.find_by_id(video_id)
|
||||
video.add_tag(tag_name)
|
||||
video_dict = video.dict()
|
||||
return video_dict
|
||||
|
||||
|
||||
@optional_session
|
||||
def delete_videos(*video_ids: int, session: Session = None):
|
||||
videos = list(session.query(Video).filter(Video.id.in_(video_ids)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue