summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/blame
diff options
context:
space:
mode:
authorKeuin <[email protected]>2023-10-23 02:52:42 +0800
committerKeuin <[email protected]>2023-10-23 02:52:42 +0800
commitf4296321542128163fa38be56c272c008f3d602f (patch)
tree9e08b1a7b7dc83ff5a63d3b677796407153c9386 /src/main/java/com/keuin/blame
parent8a3f624d7a6f4b4c58b8204de7459b5fdeb5fce1 (diff)
bugfix: query result not ordered
Diffstat (limited to 'src/main/java/com/keuin/blame')
-rw-r--r--src/main/java/com/keuin/blame/lookup/QueryExecutor.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/keuin/blame/lookup/QueryExecutor.java b/src/main/java/com/keuin/blame/lookup/QueryExecutor.java
index e11cdda..6e6bd5c 100644
--- a/src/main/java/com/keuin/blame/lookup/QueryExecutor.java
+++ b/src/main/java/com/keuin/blame/lookup/QueryExecutor.java
@@ -37,6 +37,7 @@ public class QueryExecutor {
if (timeRange > 0) {
sql += " and ts>=" + timeRange;
}
+ sql += " order by ts desc";
if (maxCount > 0) {
sql += " limit " + maxCount;
}