summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2016-05-18 13:58:29 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2016-05-18 13:58:29 (GMT)
commit97323fb5f40779cf38a96325ece5efb16812870d (patch)
tree075973ea92eb9f1803155dac9fcc6dd33b85ce76 /lib
parent635dfff6d078e40afef725be9041a52a8a9d0189 (diff)
rhrd-show can now edit show info
Diffstat (limited to 'lib')
-rwxr-xr-xlib/RHRD/rddb.pm18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/RHRD/rddb.pm b/lib/RHRD/rddb.pm
index 1172acd..1286a46 100755
--- a/lib/RHRD/rddb.pm
+++ b/lib/RHRD/rddb.pm
@@ -1492,6 +1492,24 @@ sub create_show_dropbox
return ($cnt, 'OK', 'success');
}
+sub update_show_dropbox
+{
+ my ($ctx, $show_id, $rhythm, $dow, $starttime, $len) = @_;
+ my $param = join(';', ('S', $rhythm, $dow, $starttime, $len));
+
+ my $sql = qq{update DROPBOXES set SET_USER_DEFINED = ? where TO_CART = ?};
+
+ my $sth = $ctx->{'dbh'}->prepare($sql)
+ or return (undef, 'ERROR', "Database Error: " . $ctx->{'dbh'}->errstr);
+
+ my $cnt = $sth->execute($param, $show_id)
+ or return (undef, 'ERROR', "Database Error: " . $sth->errstr);
+
+ $sth->finish();
+
+ return ($cnt, 'OK', 'success');
+}
+
sub remove_show
{
my ($ctx, $showid) = @_;