db/Selection: add sort and window

Remove them as parameters from `db_selection_print()`.
This commit is contained in:
Max Kellermann
2018-09-02 10:42:47 +02:00
parent 9894967fcb
commit e6a974a93e
5 changed files with 33 additions and 34 deletions

View File

@@ -107,12 +107,13 @@ handle_match(Client &client, Request args, Response &r, bool fold_case)
}
filter.Optimize();
const DatabaseSelection selection("", true, &filter);
DatabaseSelection selection("", true, &filter);
selection.window = window;
selection.sort = sort;
selection.descending = descending;
db_selection_print(r, client.GetPartition(),
selection, true, false,
sort, descending,
window);
selection, true, false);
return CommandResult::OK;
}