summaryrefslogtreecommitdiff
path: root/utils/rhrd-sanity-check
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-05-19 14:07:10 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-05-19 14:07:10 (GMT)
commitb4fe0e03eb1a712e379c2100ef92553afd4b26ed (patch)
tree3f858dd24a49059845328e8b0c4a9cad59297347 /utils/rhrd-sanity-check
parent10e2d89361988bd25a7085a34a874c8bf8ce98b5 (diff)
fix edit show (change title didn't work)
Diffstat (limited to 'utils/rhrd-sanity-check')
-rwxr-xr-xutils/rhrd-sanity-check18
1 files changed, 9 insertions, 9 deletions
diff --git a/utils/rhrd-sanity-check b/utils/rhrd-sanity-check
index 74c1191..9507f6b 100755
--- a/utils/rhrd-sanity-check
+++ b/utils/rhrd-sanity-check
@@ -44,25 +44,25 @@ sub check_showids
my $errors = 0,
print "showids:\n";
- my @show_ids = RHRD::rddb::list_showids($ctx);
- if(!defined $show_ids[0] && defined $show_ids[1]) {
- print STDERR "$show_ids[1]: $show_ids[2]";
+ my @showids = RHRD::rddb::list_showids($ctx);
+ if(!defined $showids[0] && defined $showids[1]) {
+ print STDERR "$showids[1]: $showids[2]";
return -1;
}
- for my $show_id (@show_ids) {
- my @carts = RHRD::rddb::get_show_carts($ctx, $show_id);
+ for my $showid (@showids) {
+ my @carts = RHRD::rddb::get_show_carts($ctx, $showid);
if(!defined $carts[0] && defined $carts[1]) {
- print " showid '" . $show_id . "': $carts[2]\n";
+ print " showid '" . $showid . "': $carts[2]\n";
$errors++;
}
if(scalar @carts == 0) {
- print " showid '" . $show_id . "': log is empty\n";
+ print " showid '" . $showid . "': log is empty\n";
$errors++;
}
- my ($group, $status, $errorstring) = RHRD::rddb::get_show_group($ctx, $show_id);
+ my ($group, $status, $errorstring) = RHRD::rddb::get_show_group($ctx, $showid);
unless(defined($group)) {
- print " showid '" . $show_id . "': has no dropbox assigned\n";
+ print " showid '" . $showid . "': has no dropbox assigned\n";
$errors++;
} else {
}