Metron-Project / metron

Django website for a comic book database
https://metron.cloud/
GNU General Public License v3.0
100 stars 7 forks source link

Query Issues by Rating #247

Closed ComputerWolf closed 6 months ago

ComputerWolf commented 6 months ago

Describe the solution you'd like The ability to query the API by the age rating

Describe alternatives you've considered Retrieving a list of issues, fetching the issue data for each and checking the Rating field. However, this requires many unneeded requests.

bpepple commented 6 months ago

Ok, I'm about to merge the PR for this feature. The new query parameter is rating.

I'm using iexact (which means case insensitve & exact match) for the lookup expression to prevent queries for teen from including teen & teen plus in the queryset.

The available rating options are as follows:

This should be pushed to production in the next hour or so, and if you have any questions don't hesitate to ask.