mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 02:52:20 -05:00
This commit is contained in:
parent
44396490cd
commit
33e094a9aa
@ -339,7 +339,7 @@ def wantedEpisodes(show, fromDate):
|
||||
# check through the list of statuses to see if we want any
|
||||
wanted = []
|
||||
for result in sqlResults:
|
||||
curCompositeStatus = int(result["status"])
|
||||
curCompositeStatus = int(result["status"] or -1)
|
||||
curStatus, curQuality = common.Quality.splitCompositeStatus(curCompositeStatus)
|
||||
|
||||
if bestQualities:
|
||||
|
@ -152,7 +152,7 @@ class BacklogSearcher:
|
||||
# check through the list of statuses to see if we want any
|
||||
wanted = {}
|
||||
for result in sqlResults:
|
||||
curCompositeStatus = int(result["status"])
|
||||
curCompositeStatus = int(result["status"] or -1)
|
||||
curStatus, curQuality = common.Quality.splitCompositeStatus(curCompositeStatus)
|
||||
|
||||
if bestQualities:
|
||||
|
@ -1309,7 +1309,7 @@ class CMD_Backlog(ApiCall):
|
||||
|
||||
for curResult in sqlResults:
|
||||
|
||||
curEpCat = curShow.getOverview(int(curResult["status"]))
|
||||
curEpCat = curShow.getOverview(int(curResult["status"] or -1))
|
||||
if curEpCat and curEpCat in (Overview.WANTED, Overview.QUAL):
|
||||
showEps.append(curResult)
|
||||
|
||||
|
@ -940,7 +940,7 @@ class Manage(MainHandler):
|
||||
[curShow.indexerid])
|
||||
|
||||
for curResult in sqlResults:
|
||||
curEpCat = curShow.getOverview(int(curResult["status"]))
|
||||
curEpCat = curShow.getOverview(int(curResult["status"] or -1))
|
||||
if curEpCat:
|
||||
epCats[str(curResult["season"]) + "x" + str(curResult["episode"])] = curEpCat
|
||||
epCounts[curEpCat] += 1
|
||||
@ -3784,7 +3784,7 @@ class Home(MainHandler):
|
||||
epCounts[Overview.SNATCHED] = 0
|
||||
|
||||
for curResult in sqlResults:
|
||||
curEpCat = showObj.getOverview(int(curResult["status"]))
|
||||
curEpCat = showObj.getOverview(int(curResult["status"] or -1))
|
||||
if curEpCat:
|
||||
epCats[str(curResult["season"]) + "x" + str(curResult["episode"])] = curEpCat
|
||||
epCounts[curEpCat] += 1
|
||||
|
Loading…
Reference in New Issue
Block a user