fix rsvp table and allow scheduling

git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@331 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2011-08-31 21:55:39 +00:00
parent 3f02bf8365
commit b7310e9765
2 changed files with 4 additions and 1 deletions

View File

@ -71,7 +71,7 @@ if {$type == 1} {
#puts $args
set msg ""
if {![file exists /mod/.schedule.testing]} { set msg "Disabled during testing" }
#if {![file exists /mod/.schedule.testing]} { set msg "Disabled during testing" }
if {$msg ne "" || [catch {[rsv new $args] insert} msg]} {
puts "Error encountered while scheduling the recording: <i>$msg</i>"
} else {

View File

@ -17,6 +17,9 @@ if {![file exists /var/lib/humaxtv/rsvp.db]} {
$tdb close
}
$rsvdb query {attach database '/var/lib/humaxtv/rsvp.db' as pending}
# This is required to upgrade old tables and will be removed in a future
# version.
catch { $rsvdb query {alter table pending add column action int} }
class rsv {
ulslot -1