Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions lib/Synergy/Reactor/Rototron.pm
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,13 @@ sub _replan_range ($self, $from_dt, $to_dt) {
],
});

# This is terrible. It just crashes on failure, so we get a "something went
# wrong". But it's easy, and it's better than "We never look at $res so
# errors are unreported."
$res->assert_successful_set("CalendarEvent/set");
eval {
$res->assert_successful_set("CalendarEvent/set");
};

if ($@) {
$Logger->log(["Failed to CalendarEvent/set. Res: %s", $res->response_payload ]);
}

$self->rototron->_duty_cache->%* = (); # should build this into Rototron

Expand Down
1 change: 1 addition & 0 deletions lib/Synergy/Rototron.pm
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ sub compute_rotor_update ($self, $from_dt, $to_dt) {
my $start = $day->ymd . "T00:00:00";

$want{ $rotor->keyword }{ $start } = {
version => '2.0',
prodId => "$PROGRAM_ID",
title => join(q{ - }, $rotor->description, $name),
start => $start,
Expand Down
Loading