Commiting final deletion of video.

This commit is contained in:
Roland 2022-11-15 13:03:26 -07:00
parent aac334e8da
commit 003304046c
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -160,5 +160,7 @@ def delete_videos(*video_ids: int, session: Session = None):
if not videos:
raise UnknownVideo('Could not find videos to delete')
logger.warning(f'Deleting {len(videos)} videos')
for video in videos:
video.delete()
session.commit()