#import sickbeard #from sickbeard import classes #from sickbeard.common import * ## #set global $header = 'Logs & Errors' #set global $title = 'Logs & Errors' #set global $sbPath = '..' #set global $topmenu = 'errorlogs' ## #import os.path #include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl') #if $varExists('header')
#if $classes.ErrorViewer.errors #for $curError in sorted($classes.ErrorViewer.errors, key=lambda error: error.time, reverse=True)[:500] #echo '%s %s\n' % ($curError.time, $curError.message) #end for #end if