diff options
author | Keuin <[email protected]> | 2023-10-23 02:52:42 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2023-10-23 02:52:42 +0800 |
commit | f4296321542128163fa38be56c272c008f3d602f (patch) | |
tree | 9e08b1a7b7dc83ff5a63d3b677796407153c9386 | |
parent | 8a3f624d7a6f4b4c58b8204de7459b5fdeb5fce1 (diff) |
bugfix: query result not ordered
-rw-r--r-- | gradle.properties | 2 | ||||
-rw-r--r-- | src/main/java/com/keuin/blame/lookup/QueryExecutor.java | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/gradle.properties b/gradle.properties index 165fd17..1420cce 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ minecraft_version=1.16.5 yarn_mappings=1.16.5+build.10 loader_version=0.14.23 # Mod Properties -mod_version=2.0.2 +mod_version=2.0.3 maven_group=com.keuin.blame archives_base_name=blame-fabric # Dependencies 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; } |