Skip to content

Fixed bug during review with duplicate videos#3

Open
admiralorbiter wants to merge 1 commit into
nemec:masterfrom
admiralorbiter:master
Open

Fixed bug during review with duplicate videos#3
admiralorbiter wants to merge 1 commit into
nemec:masterfrom
admiralorbiter:master

Conversation

@admiralorbiter
Copy link
Copy Markdown

Bug: When multiple locations are active during scraping, it will cause multiple reviews of the same video during review mode. Simply changed the SQL query to only select distinct fixing the issue.

Comment thread story_downloader.py
cur.execute('UPDATE media SET reviewed=1, classification=? WHERE id=?', (classification, idnum))
conn.commit()
print(f'{len(media) - idx - 1} remaining')
print(f'{idx+1}/{len(media)}: {v}')
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you commented out the code here and replaced it with a debug print statement.

@nemec
Copy link
Copy Markdown
Owner

nemec commented Jun 23, 2022

Hi @admiralorbiter, it looks like you removed most of the review function while debugging. If you can put that back I'll merge in your additions with DISTINCT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants