aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks/translation.rake
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-06-04 11:49:34 +0100
committerLouise Crow <louise.crow@gmail.com>2013-06-04 11:49:34 +0100
commitf6bb0e5d33ceb5beb80f9561b77c716a04f574a2 (patch)
tree135c5ccefc742e471f4b74ddf0688aace10a70d7 /lib/tasks/translation.rake
parentc304f25a8950f61215ef2fae1e7feb71cfbfeb56 (diff)
parent9727c7b62fd3fe7b00cfc64cb4b36ba445a3a960 (diff)
Merge remote-tracking branch 'openaustralia_github/inline_search_method_refactor' into rails-3-develop
Diffstat (limited to 'lib/tasks/translation.rake')
-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,