aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2010-05-25 01:00:29 +0100
committerFrancis Irving <francis@mysociety.org>2010-05-25 01:00:29 +0100
commit48bb6e3dd6c13d714d51973d21f318184438deac (patch)
treefb62537c1941a8f78d59547be08d86102dffffec
parentfc710918685f33f324a13f60c1b4c89054f19e1e (diff)
More comment.
-rw-r--r--app/models/track_mailer.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/track_mailer.rb b/app/models/track_mailer.rb
index ef5a0c195..d3b177f3d 100644
--- a/app/models/track_mailer.rb
+++ b/app/models/track_mailer.rb
@@ -43,7 +43,8 @@ class TrackMailer < ApplicationMailer
# What have we alerted on already?
# XXX this is pretty inefficient, should be restricting amount of objects returned
# with track_things_sent_emails by a date range. Or, better, deleting old entries
- # from the database entirely.
+ # from the database entirely. Make sure that the date range for the actual search
+ # means we aren't resending results.
done_info_request_events = {}
for t in track_thing.track_things_sent_emails
if not t.info_request_event_id.nil?