From 8dd822cef010960ad8588815abc9801120cc3a87 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 30 Oct 2014 18:55:22 +0800 Subject: [PATCH] Fixes issues with backlog overview page failing to load Issue #62 --- CHANGES.md | 2 +- .../default/manage_backlogOverview.tmpl | 25 +++++++++++-------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index eb34bc8c..b5e6398c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -37,7 +37,7 @@ * Fixes errors occurring when a show folder is deleted outside of SickRage * Added confirmation dialogs back in that were missed due to new UI changes * Combined delete and remove buttons in to one on individual show pages - +* Fix keyerrors on backlog overview preventing the page to load ### 0.2.1 (2014-10-22 06:41:00 UTC) diff --git a/gui/slick/interfaces/default/manage_backlogOverview.tmpl b/gui/slick/interfaces/default/manage_backlogOverview.tmpl index 6fba8392..a4af04de 100644 --- a/gui/slick/interfaces/default/manage_backlogOverview.tmpl +++ b/gui/slick/interfaces/default/manage_backlogOverview.tmpl @@ -90,17 +90,22 @@ Jump to Show EpisodeNameAirdate #for $curResult in $showSQLResults[$curShow.indexerid]: -#set $whichStr = $str($curResult["season"]) + "x" + $str($curResult["episode"]) -#set $overview = $showCats[$curShow.indexerid][$whichStr] -#if $overview not in ($Overview.QUAL, $Overview.WANTED): -#continue -#end if - - $whichStr - $curResult["name"] -
#if int($curResult["airdate"]) == 1 then "never" else $sbdatetime.sbdatetime.sbfdate($network_timezones.parse_date_time($curResult["airdate"],$curShow.airs,$curShow.network))#
- + #set $whichStr = $str($curResult["season"]) + "x" + $str($curResult["episode"]) + #try: + #set $overview = $showCats[$curShow.indexerid][$whichStr] + #except Exception + #continue + #end try + #if $overview not in ($Overview.QUAL, $Overview.WANTED): + #continue + #end if + + + $whichStr + $curResult["name"] +
#if int($curResult["airdate"]) == 1 then "never" else $sbdatetime.sbdatetime.sbfdate($network_timezones.parse_date_time($curResult["airdate"],$curShow.airs,$curShow.network))#
+ #end for #end for