summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9d4ff29)
Simply use query.count_[messages,threads] instead of actually running
the query and using the count attribute of the result set.
q.add_tag_exclude(t)
}
$searches << search
q.add_tag_exclude(t)
}
$searches << search
- count = count_threads ? q.search_threads.count : q.search_messages.count
+ count = count_threads ? q.count_threads : q.count_messages
b << "%9d %-20s (%s)" % [count, name, search]
end
end
b << "%9d %-20s (%s)" % [count, name, search]
end
end