mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Fix for KeyError: None in displayShows
This commit is contained in:
parent
61e1e5d2c2
commit
3e78004d36
1 changed files with 6 additions and 4 deletions
|
@ -873,8 +873,9 @@ class Manage(MainHandler):
|
||||||
|
|
||||||
for curResult in sqlResults:
|
for curResult in sqlResults:
|
||||||
curEpCat = curShow.getOverview(int(curResult["status"]))
|
curEpCat = curShow.getOverview(int(curResult["status"]))
|
||||||
epCats[str(curResult["season"]) + "x" + str(curResult["episode"])] = curEpCat
|
if curEpCat:
|
||||||
epCounts[curEpCat] += 1
|
epCats[str(curResult["season"]) + "x" + str(curResult["episode"])] = curEpCat
|
||||||
|
epCounts[curEpCat] += 1
|
||||||
|
|
||||||
showCounts[curShow.indexerid] = epCounts
|
showCounts[curShow.indexerid] = epCounts
|
||||||
showCats[curShow.indexerid] = epCats
|
showCats[curShow.indexerid] = epCats
|
||||||
|
@ -3429,8 +3430,9 @@ class Home(MainHandler):
|
||||||
|
|
||||||
for curResult in sqlResults:
|
for curResult in sqlResults:
|
||||||
curEpCat = showObj.getOverview(int(curResult["status"]))
|
curEpCat = showObj.getOverview(int(curResult["status"]))
|
||||||
epCats[str(curResult["season"]) + "x" + str(curResult["episode"])] = curEpCat
|
if curEpCat:
|
||||||
epCounts[curEpCat] += 1
|
epCats[str(curResult["season"]) + "x" + str(curResult["episode"])] = curEpCat
|
||||||
|
epCounts[curEpCat] += 1
|
||||||
|
|
||||||
def titler(x):
|
def titler(x):
|
||||||
if not x or sickbeard.SORT_ARTICLE:
|
if not x or sickbeard.SORT_ARTICLE:
|
||||||
|
|
Loading…
Reference in a new issue