summaryrefslogtreecommitdiff
path: root/utils/rhrd-schedules
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2016-05-06 15:54:02 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2016-05-06 15:54:02 (GMT)
commit813c9f6de35dfbf40d9f59eb77d9dae7ea1161fa (patch)
tree805604087287fb1161b692231414ba0354efd10d /utils/rhrd-schedules
parent9dd27d91403cc988ef0e4d31db6808799cb0d700 (diff)
generated schedules now get updated if they already exist
Diffstat (limited to 'utils/rhrd-schedules')
-rwxr-xr-xutils/rhrd-schedules2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/rhrd-schedules b/utils/rhrd-schedules
index 7a83458..cee3f3d 100755
--- a/utils/rhrd-schedules
+++ b/utils/rhrd-schedules
@@ -78,7 +78,7 @@ sub generate
$show->{'START_TIME'} = ($start->hour * 3600) + ($start->minute * 60) + $start->second;
push @shows, $show;
}
- my ($result, $status, $errorstring) = RHRD::rddb::create_schedule_log($ctx, $year, $month, $day, @shows);
+ my ($result, $status, $errorstring) = RHRD::rddb::create_or_update_schedule_log($ctx, $year, $month, $day, @shows);
unless(defined $result) {
print "$status: $errorstring\n";
return 1;