mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-28 19:06:19 -05:00
Removing unused column.
This commit is contained in:
parent
3aa7b47d61
commit
2821d6d7b8
2 changed files with 1 additions and 4 deletions
|
|
@ -33,7 +33,6 @@ class Video(ModelHelper, Base):
|
|||
source_id = Column(String)
|
||||
upload_date: datetime.datetime = Column(TZDateTime)
|
||||
url = Column(String)
|
||||
validated = Column(Boolean, default=False)
|
||||
view_count = Column(Integer)
|
||||
viewed = Column(TZDateTime)
|
||||
ffprobe_json = deferred(Column(JSON))
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ async def find_corrupt_videos(channel_id: int = None):
|
|||
await download_or_ask_delete(video, session, f'Missing audio. {video.video_path}')
|
||||
|
||||
with get_db_session() as session:
|
||||
videos = session.query(Video).filter(Video.validated == False) # noqa
|
||||
videos = session.query(Video) # noqa
|
||||
if channel_id:
|
||||
videos = videos.filter(Video.channel_id == channel_id)
|
||||
for video in videos:
|
||||
|
|
@ -162,8 +162,6 @@ async def find_corrupt_videos(channel_id: int = None):
|
|||
|
||||
if is_complete:
|
||||
logger.debug(f'{video.video_path.name} is valid')
|
||||
video.validated = True
|
||||
session.commit()
|
||||
continue
|
||||
|
||||
await download_or_ask_delete(video, session, f'Corrupt video. {video.video_path}')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue