Merge pull request #37 from JackDandy/feature/FixAPIEpisodeSetStatus

Fix API endpoint Episode.SetStatus to "Wanted".
This commit is contained in:
JackDandy 2014-11-20 18:30:31 +00:00
commit 9a3fcf9920
2 changed files with 3 additions and 2 deletions

View file

@ -29,7 +29,8 @@
* Fix Config Post Processing "Anime name pattern" custom javascript validation * Fix Config Post Processing "Anime name pattern" custom javascript validation
* Add check that SSLv3 is available before use by requests lib * Add check that SSLv3 is available before use by requests lib
* Update Requests library 2.3.0 to 2.4.3 (9dc6602) * Update Requests library 2.3.0 to 2.4.3 (9dc6602)
* Change suppress HTTPS verification InsecureRequestWarning as many sites use self-certified certificates. * Change suppress HTTPS verification InsecureRequestWarning as many sites use self-certified certificates
* Fix API endpoint Episode.SetStatus to "Wanted"
[develop changelog] [develop changelog]

View file

@ -985,7 +985,7 @@ class CMD_EpisodeSetStatus(ApiCall):
with epObj.lock: with epObj.lock:
if self.status == WANTED: if self.status == WANTED:
# figure out what episodes are wanted so we can backlog them # figure out what episodes are wanted so we can backlog them
if epObj.season in ep_segment: if epObj.season in segments:
segments[epObj.season].append(epObj) segments[epObj.season].append(epObj)
else: else:
segments[epObj.season] = [epObj] segments[epObj.season] = [epObj]