[MKDoc-commit] Adjusted summary email to send 7 days after the end.
sam at mkdoc.demon.co.uk
sam at mkdoc.demon.co.uk
Sun Nov 12 21:50:41 GMT 2006
Log Message:
-----------
Adjusted summary email to send 7 days after the end.
Tags:
----
mkdoc-1-6
Modified Files:
--------------
mkd/tools:
ufi_survey_mailer.pl
-------------- next part --------------
Index: ufi_survey_mailer.pl
===================================================================
RCS file: /var/spool/cvs/mkd/tools/Attic/ufi_survey_mailer.pl,v
retrieving revision 1.1.2.12
retrieving revision 1.1.2.13
diff -Ltools/ufi_survey_mailer.pl -Ltools/ufi_survey_mailer.pl -u -r1.1.2.12 -r1.1.2.13
--- tools/ufi_survey_mailer.pl
+++ tools/ufi_survey_mailer.pl
@@ -141,12 +141,13 @@
}
}
- # send the summary when a survey ended yesterday
+ # send the summary when a survey ended 8 days ago (users may enter
+ # data for 7 days past the end date)
if (my $previous = previous_survey()) {
my $diff = DateTime->now() - $previous->{end_date};
my ($years, $months, $days) =
$diff->in_units('years', 'months', 'days');
- if ($years == 0 and $months == 0 and $days == 1) {
+ if ($years == 0 and $months == 0 and $days == 8) {
send_summary($previous);
}
}
More information about the MKDoc-commit
mailing list