Removing unused function.

This commit is contained in:
Roland 2024-10-20 14:38:27 -06:00
parent 678c17e8b9
commit aed6b5e73d
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680

View file

@ -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)))