This should only happen for appointments, so move it inside if.
This commit is contained in:
parent
f5f1a0de14
commit
98774290b1
1 changed files with 1 additions and 1 deletions
|
@ -70,8 +70,8 @@ while (my $line = <THREE_DAYS>) {
|
|||
system('/usr/bin/notify-send', '-u', 'critical', '-t', '300000',
|
||||
'Appointment', "You have an appointment at $time: $val");
|
||||
}
|
||||
next if DateCalc("$date", "+ 1 hour") lt $now;
|
||||
}
|
||||
next if DateCalc("$date", "+ 1 hour") lt $now;
|
||||
if (defined $prettyDayLine) {
|
||||
print $prettyDayLine;
|
||||
undef $prettyDayLine;
|
||||
|
|
Loading…
Add table
Reference in a new issue