fix show completed

master
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)
}
}

2
testdata/migrate.sh vendored
View File

@ -114,6 +114,6 @@ function b64decode() {
}
if [ "$0" == "$BASH_SOURCE" ]; then
echo bash migrate.sh 192.168.0.86:44112 localhost:39909
echo bash migrate.sh 192.168.0.86:44112 localhost:38809
time main "$@"
fi