Added a show more functionnality

This commit is contained in:
emeric
2018-02-21 13:34:29 +01:00
parent f40df1fc29
commit 5b4fe044de
14 changed files with 89 additions and 26 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ Release::getByFilter(Wt::Dbo::Session& session,
const std::vector<std::string> keywords,
int offset, int size, bool& moreResults)
{
Wt::Dbo::collection<pointer> collection = getQuery(session, clusterIds, keywords).limit(size).offset(offset);
Wt::Dbo::collection<pointer> collection = getQuery(session, clusterIds, keywords).limit(size + 1).offset(offset);
auto res = std::vector<pointer>(collection.begin(), collection.end());