mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 07:26:18 -05:00
Commiting final deletion of video.
This commit is contained in:
parent
aac334e8da
commit
003304046c
1 changed files with 2 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue