Removing unused column.

This commit is contained in:
Roland 2023-08-15 14:14:37 -06:00
parent 3aa7b47d61
commit 2821d6d7b8
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
2 changed files with 1 additions and 4 deletions

View file

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

View file

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