From 087db22966ceb9bef7a6d112e5fdeb2538cc6957 Mon Sep 17 00:00:00 2001 From: Dirk Reske Date: Tue, 11 Oct 2022 09:36:27 +0200 Subject: [PATCH] fixed outdated centers filter --- src/api/centers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/centers.go b/src/api/centers.go index 014881e..bb77047 100644 --- a/src/api/centers.go +++ b/src/api/centers.go @@ -450,7 +450,7 @@ func (*Centers) getSearchParameters(r *http.Request) repositories.SearchParamete includeOutdatedParameter, hasOutdatedParameter := r.URL.Query()["includeOutdated"] if hasOutdatedParameter { - if tmp, err := strconv.ParseBool(includeOutdatedParameter[0]); err != nil { + if tmp, err := strconv.ParseBool(includeOutdatedParameter[0]); err == nil { result.IncludeOutdated = &tmp } } else {