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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
2
testdata/migrate.sh
vendored
2
testdata/migrate.sh
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user