-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve scene_exceptions #848
Conversation
medariox
commented
Aug 4, 2016
- PR is based on the DEVELOP branch
- Don't send big changes all at once. Split up big PRs into multiple smaller PRs that are easier to manage and review
- Read contribution guide
bdf5e86
to
f911760
Compare
@medariox still in progress? |
@fernandog |
@medariox milestone 0.1.5 then? |
This PR didn't make it as far as I'd have wished. Don't really have much time to clean up the rest of the code and since it should solve this bug as well, I'll leave it for now. @fernandog Can you please rebase? |
b2275cf
to
9aebbb0
Compare
no one else is going to test this. imo it should be merged to develop so everybody test it |
9aebbb0
to
58e50bc
Compare
@medariox why not always erase scene_exceptions before adding new ones (if succeed to fetch from github)? What do you think? so if a scene name exception becomes invalid, when we remove from file the DB won't have the wrong/old one |
c64375c
to
d7a9d74
Compare
def update_scene_exceptions(indexer_id, scene_exceptions, season=-1): | ||
"""Given a indexer_id, and a list of all show scene exceptions, update the db.""" | ||
cache_db_con = db.DBConnection('cache.db') | ||
cache_db_con.action(b'DELETE FROM scene_exceptions WHERE indexer_id=? and season=?', [indexer_id, season]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@medariox seems we already does it here.
so don't understand why we had duplicates
UPDATE: maybe we can remove the and season=?'
@fernandog |
yes, it is |
4549c84
to
d7a9d74
Compare