fix show completed
parent
6319c18ddd
commit
afcc33b76b
|
|
@ -31,7 +31,7 @@ func (a *Ajax) loadTasks(w http.ResponseWriter, r *http.Request) error {
|
||||||
|
|
||||||
func filterComplete(compl string) func(t *task.Task) bool {
|
func filterComplete(compl string) func(t *task.Task) bool {
|
||||||
return 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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -114,6 +114,6 @@ function b64decode() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$0" == "$BASH_SOURCE" ]; then
|
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 "$@"
|
time main "$@"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue