inverted appointment order, implemented loading by date range

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-01-03 21:43:35 +01:00
parent 098bf2ee90
commit 958126c958

View File

@@ -168,7 +168,7 @@ public class MariaDB implements Database {
.leftJoin(AID, "appointment_tags", AID)
.leftJoin("tid", "tags", "tid")
.groupBy(AID)
.sort("start DESC");
.sort("start ASC");
if (from != null) query.where(START, moreThan(Timestamp.valueOf(from)));
if (till != null) query.where(END, lessThan(Timestamp.valueOf(till)));
if (count != null) query.limit(count);