summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2013-07-05 15:04:51 (GMT)
committerChristian Pointner <equinox@helsinki.at>2013-07-05 15:04:51 (GMT)
commit35ea9c2c28d52c8efb570194b058ac9be62fd21c (patch)
treef006d75d789c198127d68c6697567bc1d0cab193
parentfa1e54242a55e30606101183b7afede832e9f087 (diff)
db handle fixed
-rwxr-xr-xrhimport-zf4
-rwxr-xr-xrhimport-zffe1
2 files changed, 2 insertions, 3 deletions
diff --git a/rhimport-zf b/rhimport-zf
index 008ebec..91bb4a0 100755
--- a/rhimport-zf
+++ b/rhimport-zf
@@ -84,7 +84,7 @@ print "day of broadcast: " . Date::Calc::Date_to_Text(@broadcast_day) . "\n";
for my $href ( @allowed_dbs ) {
if ($dow == int(substr($href->{'NAME'},0,2))) {
$dropbox = $href->{'PATH'};
- $to_cart = $href->{'TO_CART'};
+ $to_cart = $href->{'TO_CART'};
}
}
@@ -130,7 +130,7 @@ for my $entry ($feed->entries) {
} else {
rhimport::pv_add_note($sum_title, $sum_text, $PV_ID, sprintf("%04d-%02d-%02d", $broadcast_day[0], $broadcast_day[1], $broadcast_day[2]), "1");
}
- print "\n";
+ print "\n";
unlink($NOTE_FILE);
open(my $fhs, '>', $NOTE_FILE);
diff --git a/rhimport-zffe b/rhimport-zffe
index b5ebad1..ac55f46 100755
--- a/rhimport-zffe
+++ b/rhimport-zffe
@@ -51,7 +51,6 @@ my $import_date = sprintf("%04d-%02d-%02d", @import_day);
my $current_date = `cat $STAT_FILE`;
if($current_date eq $import_date) {
print "Already created note of today\n";
- $dbh->disconnect();
exit 0;
}