Skip to content
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

Fix for getNextUnwatchedEpisode() #6

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ib1984
Copy link

@ib1984 ib1984 commented Aug 22, 2014

getNextUnwatchedEpisode() method would return any episode that (chronologically) comes after an episode with a viewCount 1. This means that if there are three episodes with viewCounts as following, the method will return "Episode 2":

  • Episode 1: 1 view
  • Episode 2: 2 views
  • Episode 3: 0 views

With proposed changes, this situation is eliminated and "Episode 3" will be correctly returned.

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.

None yet

1 participant