summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolaus Gotsche <n@softwarefools.com>2019-03-13 03:53:44 +0100
committerNikolaus Gotsche <n@softwarefools.com>2019-03-13 03:53:44 +0100
commit42de2ad0f38780094b923b31e573387a5e0e3e11 (patch)
tree0d3d01123fbe03e4a3a3eb41e51130beef4790f4
parent4f716f56579677f69c5ef4b486051018a52020be (diff)
DESC Bills
-rw-r--r--sqlite.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlite.go b/sqlite.go
index f7bea62..108e751 100644
--- a/sqlite.go
+++ b/sqlite.go
@@ -386,7 +386,7 @@ func showLastBills(count int) {
if count == 0 {
rows, err = db.Query("SELECT * FROM bills ORDER BY date ASC")
} else if count > 0 {
- rows, err = db.Query("SELECT * FROM bills ORDER BY date ASC LIMIT ?", count)
+ rows, err = db.Query("SELECT * FROM bills ORDER BY date DESC LIMIT ?", count)
}
checkErr(err)
var id, proj int