1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Fix the home page from failing to load due to data_date not being set.

This commit is contained in:
JackDandy 2014-10-30 14:03:40 +00:00
parent a97a6ef06d
commit 7fcbebd870

View File

@ -327,6 +327,7 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
#set $progressbar_percent = $nom * 100 / $den #set $progressbar_percent = $nom * 100 / $den
#set $data_date = '6000000000.0'
#if $cur_airs_next: #if $cur_airs_next:
#set $data_date = $time.mktime($network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network).timetuple()) #set $data_date = $time.mktime($network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network).timetuple())
#else if None is not $display_status #else if None is not $display_status
@ -337,8 +338,6 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
#else if 'nded' in $display_status #else if 'nded' in $display_status
#set $data_date = '5000000100.0' #set $data_date = '5000000100.0'
#end if #end if
#else
#set $data_date = '6000000000.0'
#end if #end if
<div class="show" id="show$curShow.indexerid" data-name="$curShow.name" data-date="$data_date" data-network="$curShow.network" data-progress="$progressbar_percent"> <div class="show" id="show$curShow.indexerid" data-name="$curShow.name" data-date="$data_date" data-network="$curShow.network" data-progress="$progressbar_percent">
<div class="show-image"> <div class="show-image">