Added group by to top_x_... placeholder queries

Affects issues:
- Fixed #2191
This commit is contained in:
Risto Lahtela 2021-12-15 12:39:53 +02:00
parent 686d4ef862
commit 13fc7adbdd

View File

@ -44,6 +44,7 @@ public class TopListQueries {
AND + SessionsTable.SESSION_START + ">?" +
AND + SessionsTable.SESSION_END + "<?" +
ORDER_BY + "playtime DESC" +
GROUP_BY + "name" +
LIMIT + "10" +
OFFSET + "?";
@ -76,6 +77,7 @@ public class TopListQueries {
AND + SessionsTable.SESSION_START + ">?" +
AND + SessionsTable.SESSION_END + "<?" +
ORDER_BY + "active_playtime DESC" +
GROUP_BY + "name" +
LIMIT + "10" +
OFFSET + "?";