fix show completed

This commit is contained in:
bel
2020-01-20 21:33:44 -07:00
parent 6319c18ddd
commit afcc33b76b
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ func (a *Ajax) loadTasks(w http.ResponseWriter, r *http.Request) error {
func filterComplete(compl string) func(t *task.Task) bool {
return func(t *task.Task) bool {
return compl == "" || (compl == "0" && !t.Complete) || (compl == "1" && t.Complete)
return compl == "" || !t.Complete || (compl == "1" && t.Complete)
}
}