diff --git a/org-mode-appt-check.plx b/org-mode-appt-check.plx index 2a8b692..3aa7755 100755 --- a/org-mode-appt-check.plx +++ b/org-mode-appt-check.plx @@ -70,8 +70,8 @@ while (my $line = ) { 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;