aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-03-25 16:17:03 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-03-25 16:17:03 +1100
commit060d9fe70a1de0ba9aa592d25d6e7352114aa431 (patch)
treeee1c9485ffce0e7aa956af0133c616651e2ff8fb /lib/tasks
parentd09758c79fff462906b48dda6601ced25a8865da (diff)
Inline method InfoRequest.full_search
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/translation.rake12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/tasks/translation.rake b/lib/tasks/translation.rake
index 351faef2c..6458d9268 100644
--- a/lib/tasks/translation.rake
+++ b/lib/tasks/translation.rake
@@ -142,13 +142,11 @@ namespace :translation do
output_file)
# track mailer
- xapian_object = InfoRequest.full_search([InfoRequestEvent],
- track_thing.track_query,
- 'described_at',
- true,
- nil,
- 100,
- 1)
+ xapian_object = ActsAsXapian::Search.new([InfoRequestEvent], track_thing.track_query,
+ :sort_by_prefix => 'described_at',
+ :sort_by_ascending => true,
+ :collapse_by_prefix => nil,
+ :limit => 100)
event_digest_email = TrackMailer.event_digest(info_request.user,
[[track_thing,
xapian_object.results,