From b7310e9765b9abe66b3918a27542167544218260 Mon Sep 17 00:00:00 2001 From: hummypkg Date: Wed, 31 Aug 2011 21:55:39 +0000 Subject: [PATCH] fix rsvp table and allow scheduling git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@331 2a923420-c742-0410-a762-8d5b09965624 --- var/mongoose/cgi-bin/epg_schedule.jim | 2 +- var/mongoose/lib/rsv.class | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/var/mongoose/cgi-bin/epg_schedule.jim b/var/mongoose/cgi-bin/epg_schedule.jim index 902e549..2f1e67b 100755 --- a/var/mongoose/cgi-bin/epg_schedule.jim +++ b/var/mongoose/cgi-bin/epg_schedule.jim @@ -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: $msg" } else { diff --git a/var/mongoose/lib/rsv.class b/var/mongoose/lib/rsv.class index e3749db..7e6bf6f 100755 --- a/var/mongoose/lib/rsv.class +++ b/var/mongoose/lib/rsv.class @@ -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