diff options
| author | Nikolaus Gotsche <n@softwarefools.com> | 2019-03-13 03:53:44 +0100 |
|---|---|---|
| committer | Nikolaus Gotsche <n@softwarefools.com> | 2019-03-13 03:53:44 +0100 |
| commit | 42de2ad0f38780094b923b31e573387a5e0e3e11 (patch) | |
| tree | 0d3d01123fbe03e4a3a3eb41e51130beef4790f4 /sqlite.go | |
| parent | 4f716f56579677f69c5ef4b486051018a52020be (diff) | |
DESC Bills
Diffstat (limited to 'sqlite.go')
| -rw-r--r-- | sqlite.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
