fix show completed
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user