esgibter / fandomstats

Fandom Statistics
12 stars 2 forks source link

Return a complete list of warnings/ratings even if all are not present #56

Closed annathecrow closed 8 years ago

annathecrow commented 8 years ago

If the tag doesn't contain any works using a specific warning/rating, AO3 does not show it in the filter sidebar. Because of this, the API doesn't return it.

For example: "12 Dancing Princesses (Fairy Tale)" contains only works rated G, T and M, and only the "No Archive Warnings Apply", "Creator Chose Not To Use Archive Warnings", and "Major Character Death" warning tags. From the csv:

rating, number of works Teen And Up Audiences, 11 General Audiences, 23 Mature, 1

warning, number of works Major Character Death, 1 Creator Chose Not To Use Archive Warnings, 8 No Archive Warnings Apply, 28

I think the API should always return all the tags that have known list of choices (e.g. Ratings, Warnings, Categories). It's more convenient for the consummer and it should be fairly easy to do on our side.

annathecrow commented 8 years ago

Done.