mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 11:32:20 -05:00
Testing fix #1 for "TypeError: argument of type 'NoneType' is not iterable" 500 error
This commit is contained in:
parent
c478d45c36
commit
037cee7820
@ -9,8 +9,15 @@
|
|||||||
<div class="meta" style="float:left;font-size: 12px;">
|
<div class="meta" style="float:left;font-size: 12px;">
|
||||||
#set $myDB = $db.DBConnection()
|
#set $myDB = $db.DBConnection()
|
||||||
#set $today = str($datetime.date.today().toordinal())
|
#set $today = str($datetime.date.today().toordinal())
|
||||||
|
|
||||||
|
#if $sickbeard.showList:
|
||||||
#set $numShows = len($sickbeard.showList)
|
#set $numShows = len($sickbeard.showList)
|
||||||
#set $numGoodShows = len([x for x in $sickbeard.showList if x.paused == 0 and "Ended" not in x.status])
|
#set $numGoodShows = len([x for x in $sickbeard.showList if x.paused == 0 and "Ended" not in x.status])
|
||||||
|
#else
|
||||||
|
#set $numShows = 0
|
||||||
|
#set $numGoodShows = 0
|
||||||
|
#end if
|
||||||
|
|
||||||
#set $numDLEpisodes = $myDB.select("SELECT COUNT(*) FROM tv_episodes WHERE status IN ("+",".join([str(x) for x in $Quality.DOWNLOADED + [$ARCHIVED]])+") AND season != 0 and episode != 0 AND airdate <= "+$today+"")[0][0]
|
#set $numDLEpisodes = $myDB.select("SELECT COUNT(*) FROM tv_episodes WHERE status IN ("+",".join([str(x) for x in $Quality.DOWNLOADED + [$ARCHIVED]])+") AND season != 0 and episode != 0 AND airdate <= "+$today+"")[0][0]
|
||||||
#set $numEpisodes = $myDB.select("SELECT COUNT(*) FROM tv_episodes WHERE season != 0 and episode != 0 AND (airdate != 1 OR status IN ("+",".join([str(x) for x in ($Quality.DOWNLOADED + $Quality.SNATCHED + $Quality.SNATCHED_PROPER) + [$ARCHIVED]])+")) AND airdate <= "+$today+" AND status != "+str($IGNORED)+"")[0][0]
|
#set $numEpisodes = $myDB.select("SELECT COUNT(*) FROM tv_episodes WHERE season != 0 and episode != 0 AND (airdate != 1 OR status IN ("+",".join([str(x) for x in ($Quality.DOWNLOADED + $Quality.SNATCHED + $Quality.SNATCHED_PROPER) + [$ARCHIVED]])+")) AND airdate <= "+$today+" AND status != "+str($IGNORED)+"")[0][0]
|
||||||
<b>$numShows shows</b> ($numGoodShows active) | <b>$numDLEpisodes/$numEpisodes</b> episodes downloaded |
|
<b>$numShows shows</b> ($numGoodShows active) | <b>$numDLEpisodes/$numEpisodes</b> episodes downloaded |
|
||||||
|
Loading…
Reference in New Issue
Block a user