Closed 3risian closed 1 year ago
The current code filters pages after pagination, resulting in some pages having less than 10 items, so this fix should not be applied until the filtering is fixed.
This pull request now performs the filtering within the database query, fixing both the pagination miscount and the pages containing less than 10 items.
Solves https://github.com/supertuxkart/stk-addons/issues/142
This counts the addons and filters them the same way the list does.
Addon::count is no longer used in the codebase, so it is deleted.