1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-04 15:12:23 -05:00

Fixed issue with default_ep_status when loading from DB.

Updated tv_tests to reflect new default_ep_status show option.
This commit is contained in:
echel0n 2014-11-23 05:18:03 -08:00
parent 4369802dde
commit 6f833286b7
2 changed files with 5 additions and 1 deletions

View File

@ -827,7 +827,9 @@ class TVShow(object):
self.rls_ignore_words = sqlResults[0]["rls_ignore_words"]
self.rls_require_words = sqlResults[0]["rls_require_words"]
self.default_ep_status = int(sqlResults[0]["default_ep_status"])
self.default_ep_status = sqlResults[0]["default_ep_status"]
if not self.default_ep_status:
self.default_ep_status = ""
if not self.imdbid:
self.imdbid = sqlResults[0]["imdb_id"]

View File

@ -41,6 +41,7 @@ class TVShowTests(test.SickbeardTestDBCase):
show.genre = "crime"
show.runtime = 40
show.status = "5"
show.default_ep_status = "5"
show.airs = "monday"
show.startyear = 1987
@ -90,6 +91,7 @@ class TVTests(test.SickbeardTestDBCase):
show.genre = "crime"
show.runtime = 40
show.status = "5"
show.default_ep_status = "5"
show.airs = "monday"
show.startyear = 1987
show.saveToDB()