The user presumably does not want to look everywhere for recent tasks.
This commit is contained in:
parent
55a6693942
commit
4f2c2dc8da
2
acid.go
2
acid.go
@ -244,7 +244,7 @@ var templateTasks = template.Must(template.New("tasks").Parse(`
|
||||
`))
|
||||
|
||||
func handleTasks(w http.ResponseWriter, r *http.Request) {
|
||||
tasks, err := getTasks(r.Context(), `ORDER BY id DESC`)
|
||||
tasks, err := getTasks(r.Context(), `ORDER BY changed DESC, id DESC`)
|
||||
if err != nil {
|
||||
http.Error(w,
|
||||
"Error retrieving tasks: "+err.Error(),
|
||||
|
Loading…
Reference in New Issue
Block a user