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:
parent
4369802dde
commit
6f833286b7
@ -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"]
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user