Added a play/add all on tracks view

This commit is contained in:
emeric
2018-02-25 08:57:05 +01:00
parent fe53103445
commit aa54b5b599
12 changed files with 84 additions and 18 deletions
+3 -1
View File
@@ -118,7 +118,9 @@ 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 + 1).offset(offset);
Wt::Dbo::collection<pointer> collection = getQuery(session, clusterIds, keywords)
.limit(size != -1 ? size + 1 : -1)
.offset(offset);
auto res = std::vector<pointer>(collection.begin(), collection.end());