Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
fixed outdated centers filter
Browse files Browse the repository at this point in the history
  • Loading branch information
dreske committed Oct 11, 2022
1 parent 84e7515 commit 087db22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/centers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 087db22

Please sign in to comment.