diff options
Diffstat (limited to 'lib/PublicInbox/LeiQuery.pm')
-rw-r--r-- | lib/PublicInbox/LeiQuery.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiQuery.pm b/lib/PublicInbox/LeiQuery.pm index 0346498f..9a6fa718 100644 --- a/lib/PublicInbox/LeiQuery.pm +++ b/lib/PublicInbox/LeiQuery.pm @@ -81,7 +81,7 @@ sub lei_q { $self->{l2m}->{jobs} = ($mj // $nproc) if $self->{l2m}; PublicInbox::LeiOverview->new($self) or return; - my %mset_opt = map { $_ => $opt->{$_} } qw(thread limit offset); + my %mset_opt = map { $_ => $opt->{$_} } qw(threads limit offset); $mset_opt{asc} = $opt->{'reverse'} ? 1 : 0; $mset_opt{limit} //= 10000; if (defined(my $sort = $opt->{'sort'})) { @@ -96,7 +96,7 @@ sub lei_q { } } # descending docid order - $mset_opt{relevance} //= -2 if $opt->{thread}; + $mset_opt{relevance} //= -2 if $opt->{threads}; $self->{mset_opt} = \%mset_opt; if ($opt->{stdin}) { |