Skip to content

Commit

Permalink
add firearm manufacturer filter
Browse files Browse the repository at this point in the history
  • Loading branch information
morphy2k committed Jan 3, 2022
1 parent a74933d commit 2871ba7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controller/item.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ Loop:
break
}
case item.KindFirearm:
err = filter.AddString("manufacturer", r.URL.Query().Get("manufacturer"))
if err != nil {
break
}

err = filter.AddString("type", r.URL.Query().Get("type"))
if err != nil {
break
Expand Down

0 comments on commit 2871ba7

Please sign in to comment.